摘要: sqlserver版: 查询当前数据库下所有表名: select * from sys.tables; 查询当前库下,一张表的表名,字段名,字段类型,字段长度: select a.name 表名,b.name 字段名,c.name 字段类型,c.length 字段长度 from sysobjects 阅读全文