银 银雨辰 Unregistered / Unconfirmed GUEST, unregistred user! 2007-12-12 #2 SELECT Name FROM sys.objects WHERE (type = 'PK') And (Object_Name(parent_Object_id) = 'YourTableName')
SELECT Name FROM sys.objects WHERE (type = 'PK') And (Object_Name(parent_Object_id) = 'YourTableName')
Z zhj09 Unregistered / Unconfirmed GUEST, unregistred user! 2007-12-12 #3 SELECT TABLE_NAME,COLUMN_NAME <br>FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE <br>WHERE TABLE_NAME= '表名' <br>不知行不,请试下.
SELECT TABLE_NAME,COLUMN_NAME <br>FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE <br>WHERE TABLE_NAME= '表名' <br>不知行不,请试下.