select sc.name,st.name
from syscolumns sc left join systypes st
on sc.xtype=st.xtype
where id=object_id('表名') and sc.name='字段名'
怎样得到数据库中某一个表的某一个字段在设计时候的数据类型
最新推荐文章于 2020-12-10 15:39:02 发布
select sc.name,st.name
from syscolumns sc left join systypes st
on sc.xtype=st.xtype
where id=object_id('表名') and sc.name='字段名'