O campo representado por xtype na tabela de sistema syscolumns em sql

selecione o nome, xtype de syscolumns onde  
                    id = (selecione id de sysobjects  
                    onde nome = 'tab_AAA' e xtype = 'U') e  
                    ((COLUMNPROPERTY (OBJECT_ID ('tab_AAA', 'U'), NOME, 'IsIdentity') < > 1)  
                    e (COLUMNPROPERTY (OBJECT_ID ('tab_AAA', 'U'), NAME, 'IsComputed') <>1)) 

xtype 类型
34 imagem 
35 texto 
36 uniqueidentifier 
48 tinyint 
52 smallint 
56 int 
58 smalldatetime 
59 real 
60 money 
61 datetime 
62 float 
98 sql_variant 
99 ntext 
104 bit 
106 decimal 
108 numérico 
122 smallmoney
127 bigint 
165 varbinary 
167 varchar 
173 binário 
175 char 
189 timestamp 
231 sysname 
231 nvarchar 
239 nchar

 

Acho que você gosta

Origin blog.csdn.net/oYuHuaChen/article/details/110424972
Recomendado
Clasificación