请问怎么查一个数据库里哪些表使用了某字段
请教如何查一个数据库里哪些表使用了某字段
数据里有很多表,某些表使用了一个字段。怎么查哪些表使用了呢。
------解决方案--------------------
select a.name from sysobjects a,syscolumns b where a.id=b.id and a.type='U' and b.name='字段名'
数据里有很多表,某些表使用了一个字段。怎么查哪些表使用了呢。
------解决方案--------------------
select a.name from sysobjects a,syscolumns b where a.id=b.id and a.type='U' and b.name='字段名'