【发布时间】:2014-02-05 16:55:26
【问题描述】:
我找到了这个问题,但它似乎没有回答这个问题......
SQL Server - How to find if clustered index exists
如何写一个 IF T-SQL 语句来表示:
IF NOT ([TableName] has a CLUSTERED PK)
ALTER TABLE to add the CLUSTERED PK
【问题讨论】:
标签: sql tsql primary-key clustered-index