select b.name,a.name,c.name,a.xprec,a.xscale
from syscolumns a
left outer join sysobjects b ON a.id=b.id
left outer join systypes c ON c.xusertype=a.xusertype
where b.xtype=‘U‘ AND b.name LIKE ‘%CRM_PS%‘
AND (select systypes.name+‘(‘+cast(a.length/2 as varchar(10))+‘)‘ from systypes where a.xusertype=systypes.xusertype ) LIKE ‘%decimal%‘
order by b.name,a.colid
原文地址:https://www.cnblogs.com/hualiuliu/p/11453479.html
时间: 2024-11-01 20:17:20