1. 下面的语句列出指定表的所有列名 select name from syscolumns where id=object_id('你要查询的表名') 2. 查询数据库中所有类型 select name,xtype from systypes