SqlServer 查詢表的詳細信息

SELECT 字段名=a.name, 類型=b.name, 字段說明=isnull(g.[value],''), 是否爲空=case when a.isnullable=1 then 1 else 0 end, 是否自增=case when COLUMNPROPERTY(a.id,a.name,'IsIdentity')=1 then 1 else 0 end, 主鍵=case when exis
相關文章
相關標籤/搜索