select [name] from sysobjects where [id] in (select [id] from syscolumns where [name]='ReceiptNbr') --
ReceiptNbr为想要查询的字段名
select [name] from sysobjects where [id] in (select [id] from syscolumns where [name]='ReceiptNbr') --
ReceiptNbr为想要查询的字段名
转载于:https://www.cnblogs.com/colin2011/p/4402658.html