sql2000 使用查詢列出,表的字段類型

Select
    col.[name]  as '字段名',
    col.[length]as '長度'  ,
    type.[name] as '類型'  ,
    pro.value   as '描述' 
 From syscolumns as col
 Left Join systypes as type on col.xtype = type.xtype
 Left Join sysProperties as pro on col.id = pro.id and col.colid = pro.smallid
 where col.id = (Select id From Sysobjects Where name = 'hb_ZB_gj11')

發佈了18 篇原創文章 · 獲贊 2 · 訪問量 4萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章