SQL 语句记录

来源:互联网 发布:Ubuntu系统更改ip地址 编辑:程序博客网 时间:2024/06/03 20:19
--读取库中的所有表名select name from sysobjects where xtype='u'--读取指定表的所有列名select name from syscolumns where id=(select max(id) from sysobjects where xtype='u' and name='表名')