復制代碼 代碼如下:
select sql_variant_property(ID,'BaseType') from tb
復制代碼 代碼如下:
select object_name(ID)表名,
c.name 字段名,
t.name 數據類型,
c.prec 長度
from syscolumns c
inner join systypes t
on c.xusertype=t.xusertype
where objectproperty(id,'IsUserTable')=1 and id=object_id('tb')
新聞熱點
疑難解答