MSSQL获得表的字段名称及其参数

SELECT ColumnsName = c.name, [Description] = 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.column_id AND ex.name = 'MS_Description' left outer join systypes t on c.system_type_id=t.xtype
WHERE OBJECTPROPERTY(c.object_id, 'IsMsShipped') = 0 AND
OBJECT_NAME(c.object_id) = '表名'

  

上一篇:Jmeter(三十二)Jmeter Question 之 “自定义函数开发”


下一篇:springcloud提供开放api接口签名验证