SELECT sysobjects.name AS 表名称 ,--sysproperties.[value] AS 表说明 ,syscolumns.name AS 字段名称 ,--properties.[value] AS 字段说明 ,systypes.name AS 字段类型 ,syscolumns.length AS 字段长度 ,ISNULL(COLUMNPROPERTY(syscolumns.id, syscolumns.name,'Scale'), 0) AS 小数位数 , CASE W