select
a.DESC0,
a.DID,
case when b.xusertype ='167' then 'varchar('+convert(varchar(10),b.length)+')'
when b.xusertype ='61' then 'datetime'
when b.xusertype ='36' then 'GUID'
when b.xusertype ='108' then 'numeric'
else 'Null'
end as Type
from SMTMPSD a
left join syscolumns b on A.DID=b.name
where a.SGUID='52ff2194-cafc-4c98-b468-09230355244e' --指定一个场景
and b.ID=OBJECT_ID('REISF_1')--指定表名称
order by a.ZORDER查询表里面的字段名、字段类型及含义
SQL字段类型映射示例
最新推荐文章于 2024-08-14 09:08:52 发布
1230

被折叠的 条评论
为什么被折叠?



