–读取库中的所有表名
select name from sysobjects where xtype=\’u\’

–读取指定表的所有列名
select name from syscolumns where id=(select max(id) from sysobjects where xtype=\’u\’ and name=\’表名\’)

版权声明:本文为huashanlin原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/huashanlin/archive/2007/03/03/662407.html