syscolumns的字段

syscolumns

SQL Server 2000
10(共 17)对本文的评价是有帮助 - 评价此主题

Contains one row for every column in every table and view, and a row for each parameter in a stored procedure. This table is in each database.

Column nameData typeDescription
namesysnameName of the column or procedure parameter.
idintObject ID of the table to which this column belongs, or the ID of the stored procedure with which this parameter is associated.列所属的表的ID
xtypetinyintPhysical storage type from systypes.
typestattinyintFor internal use only.
xusertypesmallintID of extended user-defined data type.
lengthsmallintMaximum physical storage length from systypes.
xprectinyintFor internal use only.
xscaletinyintFor internal use only.
colidsmallintColumn or parameter ID.
xoffsetsmallintFor internal use only.
bitpostinyintFor internal use only.
reservedtinyintFor internal use only.
colstatsmallintFor internal use only.
cdefaultintID of the default for this column.
domainintID of the rule or CHECK constraint for this column.
numbersmallintSubprocedure number when the procedure is grouped (0 for nonprocedure entries).
colordersmallintFor internal use only.
autovalvarbinary(255)For internal use only.
offsetsmallintOffset into the row in which this column appears; if negative, variable-length row.
statustinyintBitmap used to describe a property of the column or the parameter:

0x08 = Column allows null values.
0x10 = ANSI padding was in effect when varchar or varbinary columns were added. Trailing blanks are preserved for varchar and trailing zeros are preserved for varbinary columns.
0x40 = Parameter is an OUTPUT parameter.
0x80 = Column is an identity column.

typetinyintPhysical storage type from systypes.
usertypesmallintID of user-defined data type from systypes.
printfmtvarchar(255)For internal use only.
precsmallintLevel of precision for this column.
scaleintScale for this column.
iscomputedintFlag indicating whether the column is computed:

0 = Noncomputed.
1 = Computed.

isoutparamintIndicates whether the procedure parameter is an output parameter:

1 = True.
0 = False.

isnullableintIndicates whether the column allows null values:

1 = True.
0 = False.

转载于:https://www.cnblogs.com/zhulinmails/archive/2012/05/25/2518545.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值