1. 程式人生 > >sql語句查看錶結構

sql語句查看錶結構

select * from information_schema.columns where table_name='ywt_xxgl'

檢視欄位說明

select B.name,value from sys.extended_properties A inner join sys.columns B on A.major_id=B.object_id
   and A.minor_id=B.Column_id where  A.Value!='' and A.major_ID=object_id('表名)