Home  >  Article  >  Database  >  sql server 中 syscolumns 各个字段的意义

sql server 中 syscolumns 各个字段的意义

WBOY
WBOYOriginal
2016-06-07 17:43:121270browse

列名 数据类型 描述 name sysname 列名或过程参数的名称。 id int 该列所属的表对象 ID,或与该参数关联的存储过程 ID。 xtype tinyint systypes 中的物理存储类型。 typestat tinyint 仅限内部使用。 xusertype smallint 扩展的用户定义数据类型 ID。 lengt

列名 数据类型 描述

name sysname 列名或过程参数的名称。

id int 该列所属的表对象 ID,或与该参数关联的存储过程 ID。

 xtype tinyint systypes 中的物理存储类型。

typestat tinyint 仅限内部使用。

xusertype smallint 扩展的用户定义数据类型 ID。

length smallint systypes 中的最大物理存储长度。

xprec tinyint 仅限内部使用。

xscale tinyint 仅限内部使用。

colid smallint 列或参数 ID。

xoffset smallint 仅限内部使用。

bITpos tinyint 仅限内部使用。

reserved tinyint 仅限内部使用。

colstat smallint 仅限内部使用。

cdefault int 该列的默认值 ID。

 domain int 该列的规则或 CHECK 约束 ID。

number smallint 过程分组时(0 表示非过程项)的子过程号。

 colorder smallint 仅限内部使用。

autoval varbinary(255) 仅限内部使用。

 offset smallint 该列所在行的偏移量;如果为负,表示可变长度行。

status tinyint 用于描述列或参数属性的位图: 0x08 = 列允许空值。 0x10 = 当添加 varchar 或 varbinary 列时,香港虚拟主机,服务器空间,美国空间,ANSI 填充生效。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article: 数据库事务Next article: SQL Server 存储过程