在sqlserver中如何根据字段名查找字段所在的表

select   a.name   表名,b.name   列名   from   sysobjects   a,syscolumns   b   where   a.id=b.id   and   b.name='字段名'   and   a.type='U'

转载于:https://www.cnblogs.com/zhangchenliang/archive/2010/02/02/1662142.html

猜你喜欢

转载自blog.csdn.net/weixin_33861800/article/details/93496009