sql语句查询表名,字段名 速记

--读取库中的所有表名 
select name from sysobjects where xtype='u' 

--读取指定表的所有列名 
select name from syscolumns where id=(select max(id) from sysobjects where xtype='u' and name='表名')
原文地址:https://www.cnblogs.com/NetSos/p/1753389.html