简体   繁体   English

SQL Server视图中的最大列数上限是多少?

[英]What is the maximum upper limit on number of Columns in a SQL Server view?

I am creating a view which will be a join of a few tables that I have. 我正在创建一个视图,该视图将是我拥有的一些表的联接。 And I need more than 14K columns in my view to write where clause. 而且在我看来,需要超过14K列来编写where子句。 I am not sure about the maximum numbers of columns in a SQL Server view. 我不确定SQL Server视图中的最大列数。

Let's say I have two entities, entity A and entity B. Now Entity A can have multiple value for B 假设我有两个实体,实体A和实体B。现在,实体A可以对B具有多个值

Like 喜欢

A.id, B.id,  Value
(A1  , B1 ,   5)
(A1  , B2   ,6)
(A1   ,B3   ,7)
(A2   ,B2   ,7)
(A2  , B1   ,8)
(A2  , B3  , NULL)
(A1  , B4  , NULL )

I want list of A's where B1 is 5 and B2 is 6. 我想要A的列表,其中B1是5,B2是6。

BTW my B table has 14K records. BTW我的B表有14K条记录。

根据微软的说法,4,096是答案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM