获取数据字段(表的字段和类型信息) SELECT 表名= then d.name else '' end, 表说明= then isnull(f.value,'') else '' end, 字段序号=a.colorder, 字段名=a.name, 标识= then '√'else '' end, 主键= FROM sysobjects where xtype='PK' and name in ( SELECT name FROM sysindexes WHERE indid in( SELEC…