【一句話學習筆記SQL篇】表和列的擴展屬性

閒言碎語不說,直接入主題。

表的擴展屬性查詢:

--'table_name'自己指定

 select * from sys.fn_listextendedproperty 
(default,'schema', 'dbo', 'table', 'table_name', null, null);

 

字段的擴展屬性查詢:

--'column_name'自己指定

select * from sys.fn_listextendedproperty 
(default,'schema', 'dbo', 'table', 'table_name', 'column', 'column_name');

 

修改,刪除參照如下SP

sys.sp_addextendedproperty、

sys.sp_dropextendedproperty、

sys.sp_updateextendedproperty

 

 


 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章