SQL xtype

本文展示了如何使用SQL查询语句查找并获取数据库系统中所有xtype类型的详细信息,包括但不限于image、text、uniqueidentifier等常见类型。

select 'xtype='+cast(xtype as varchar(20)),'"'+name+'"' from systypes

查找系统中所有xtype类型

xtype=34 "image"
xtype=35 "text"
xtype=36 "uniqueidentifier"
xtype=40 "date"
xtype=41 "time"
xtype=42 "datetime2"
xtype=43 "datetimeoffset"
xtype=48 "tinyint"
xtype=52 "smallint"
xtype=56 "int"
xtype=58 "smalldatetime"
xtype=59 "real"
xtype=60 "money"
xtype=61 "datetime"
xtype=62 "float"
xtype=98 "sql_variant"
xtype=99 "ntext"
xtype=104 "bit"
xtype=106 "decimal"
xtype=108 "numeric"
xtype=122 "smallmoney"
xtype=127 "bigint"
xtype=240 "hierarchyid"
xtype=240 "geometry"
xtype=240 "geography"
xtype=165 "varbinary"
xtype=167 "varchar"
xtype=173 "binary"
xtype=175 "char"
xtype=189 "timestamp"
xtype=231 "nvarchar"
xtype=239 "nchar"
xtype=241 "xml"
xtype=231 "sysname"
xtype=243 "IntTableType"
xtype=243 "VarcharTableType"



评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值