使用SQL查看表字段和字段说明
MySql:
show full columns from tableName;
Sql server:
SELECT A.name AS table_name, B.name AS column_name, C.value AS column_description FROM sys.tables AS A INNER JOIN sys.columns AS B ON B.object_id = A.object_id LEFT OUTER JOIN sys.extended_properties AS C ON C.major_id = B.object_id AND C.minor_id = B.column_id WHERE (A.name = '表名')
作者:Eric Li
出处:http://www.cnblogs.com/ericli-ericli/
除转载文章外,随笔版权归作者和博客园所有,欢迎转载,转载请标明出处。
如果您觉得本篇博文对您有所收获,觉得作者还算用心,请点击右下角的 [推荐],谢谢!