用一个Sql语句查询出表中的一个字段的数据类型

select name,(select name from systypes where xusertype=syscolumns.xusertype) from syscolumns where id=object_id('aa')

如果是其它的表,把'aa'换成别的表名就行了
 

你可能感兴趣的:(sql,数据库,数据类型,休闲,语句查询)