查询指定表结构的表名.列名.类型.说明.字段长度 select o.name as tableName,c.name as columnName,t.name as columnType,p.value as columnDescription,c.prec from sysobjects o left join syscolumns c on o.id=c.idleft join sys.extended_properties p on p.major_id=c.id and p.mino…
查询数据库中所有表名 select table_name from information_schema.tables where table_schema='csdb' and table_type='base table'; 查询指定数据库中指定表的所有字段名 select column_name from information_schema.columns where table_schema='csdb' and table_name='users';…