代码如下: SELECT TableName = OBJECT_NAME(c.object_id), ColumnsName = c.name, Descr iption = ex.value, ColumnType=t.name, Length=c.max_length FROM sys.columns c LEFT OUTER JOIN sys.extended_properties ex ON ex.major_id = c.object_id AND ex.minor_id = c.co