Create table FavoriteDish
(
FavID int identity (1,1) primary key not null,
DishID int references Dishes(DishID) not null ,
CelebrityName nvarchar(100) nonclustered not null
)
Run Code Online (Sandbox Code Playgroud)
这导致了
关键字'nonclustered'附近的语法不正确.
我提到了创建表语法的MSDN帮助.我不确定这里有什么不对.
我们可以在SQL Server 2008中的表值函数表中的列上创建索引吗?
我的功能是缓慢的结果.当我查看执行计划时,它是在表扫描下,因此我需要在函数表列上创建索引,以便将where子句放在其上.
任何帮助将受到高度赞赏.
提前致谢