Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我相信有一个新功能,您可以在其中定义列,HIDDEN以便 aSELECT *返回除隐藏列之外的所有列。
HIDDEN
SELECT *
这可能吗?如果是,您将如何使用 SQL Server 2016 或 SQL Azure 实现它?
将评论中的信息添加到答案中。
我们不能将列指定为隐藏并执行选择 *,它返回除隐藏之外的所有列,如临时表。此外,此功能仅适用于有效从,有效到列,尽管拥有这样的功能很好。正如 Satya 提到的,你可以使用视图来实现或多或少相同。