简体   繁体   English

是否可以为视图设置主键?

[英]Is it possible to set a primary key to a view?

是否可以在SQLServer 2008中为视图设置主键?

You can create a clustered index on a SQL Server view - it's called an indexed view. 您可以在SQL Server视图上创建聚集索引 -它称为索引视图。

See Improving Performance with SQL Server 2008 Indexed Views for details. 有关详细信息,请参见使用SQL Server 2008索引视图提高性能

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

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