当前位置:首页 > 数据库 > 正文

SQL——查询包含某字段的所有表

查询包含某字段的所有表

select object_name(id) objName,Name as colName from syscolumns where (name like‘%你要查询的字段名%‘) and id in(select id from sysobjects where xtype=‘u‘) order by objname