日期:2014-05-17 浏览次数:20415 次
SELECT c.name FROM sys.index_columns AS ic JOIN sys.columns AS c ON ic.object_id = c.object_id AND ic.column_id = c.column_id WHERE ic.index_id <= 1 AND ic.partition_ordinal = 1 AND ic.object_id = OBJECT_ID('对应表名')