日期:2014-05-18  浏览次数:20481 次

在sql server中如何获得表名和字段名?
在sql   server中如何获得表名和字段名?

------解决方案--------------------
sysobjects
syscolumns
------解决方案--------------------
--表名
select name from sysobjects
where type= 'U '
--字段名
select name from syscolumns
where id=object_id( '表名 ')