如何知道表的每个列的数据类型 在左边的里面找到相应的表,点开就能看到列类型 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select b.colname, a.[name] from sys.types a inner join (select [name] as colName, system_type_id from sys.columns where [object_id]= (select [object_id] from sys.tables where [name]= '表名') ) b on a.system_type_id = b.system_type_id 关于SQL SERVER2005中标识列的问题? 在存储过程中,如何遍历查询结果中列 急啊!!!!!日期格式问题-在线等 多对多关联 用 中间表, 求nhibernate中的HQL写法? 本人不会会计,请教个"会计期"的问题?会计期是一个什么概念呀? 主键使用 newid() 和 Int 哪个效率高? sql 2000分页查询优化比较 问个多表查询的问题,求教! 急,如何动态的将SQL查询值赋给局部变量?? 数据库查询SQL的实现方法!!在线等待~~~~~~ SQL 的自动备份问题。 SQL Server 2012 安装后,程序显示(管理员)问题
select b.colname,
a.[name]
from sys.types a
inner join (select [name] as colName,
system_type_id
from sys.columns
where [object_id]= (select [object_id]
from sys.tables
where [name]= '表名')
) b
on a.system_type_id = b.system_type_id