[最优解释] SELECT t.name FROM sys.columns c INNER JOIN sys.tables t ON c.[object_id]=t.[object_id] WHERE c.name='hbl_no'
SELECT OBJECT_NAME(c.[object_id]) FROM sys.columns c WHERE c.name='hbl_no' [其他解释] 楼主你要注意这两个视图,要找找哪个才是你想要的。 SELECT * FROM syscolumns SELECT * FROM sys.columns [其他解释]