語句如下:
select o.name as 表名, c.name as 字段名稱, t.name as 字段類型, c.length as 字段長度
from
syscolumns c inner join
sysobjects o on c.id = o.id and o.xtype = 'u' inner join
systypes t on c.xtype = t.xtype
where o.name = 'hnjb_ysks'(表名)
語句如下:
select o.name as 表名, c.name as 字段名稱, t.name as 字段類型, c.length as 字段長度
from
syscolumns c inner join
sysobjects o on c.id = o.id and o.xtype = 'u' inner join
systypes t on c.xtype = t.xtype
where o.name = 'hnjb_ysks'(表名)