SQL Server 导出表结构到excel
摘要:
SELECT 表名 = case when a.colorder=1 then d.name else '' end, 表说明 = case when a.colorder=1 then isnull(f.value,'') else '' end, 字段序号 = a.colorder, 字段名 = a.name, 标识 = case when COLUMNPROPERTY( a.id,a.name,'IsIdentity')=1 then '√'else '' end, 主键 = case whe 阅读全文
posted @ 2013-05-07 13:57 AndyCai 阅读(253) 评论(0) 推荐(0) 编辑