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

被折叠的 条评论
为什么被折叠?



