SELECT name FROM sys.sysobjects SO WHERE EXISTS ( SELECT * FROM syscolumns SC WHERE name LIKE ‘Reason‘ AND SC.id = SO.id )
根据字段名称查找所在的表名
时间: 2024-11-10 02:22:02
SELECT name FROM sys.sysobjects SO WHERE EXISTS ( SELECT * FROM syscolumns SC WHERE name LIKE ‘Reason‘ AND SC.id = SO.id )
根据字段名称查找所在的表名