sys.pdw_nodes_columns (Transact-SQL)

适用于:Azure Synapse AnalyticsAnalytics Platform System (PDW)

显示用户定义的表和用户定义的视图的列。

列名 数据类型 说明 范围
object_id int 此列所属对象的 ID。
name sysname 列的名称。 在 对象中唯一。
column_id int 列的 ID。 在 对象中唯一。
system_type_id tinyint 列的系统类型的 ID。
user_type_id int 用户定义的列类型的 ID。
max_length smallint 列的最大长度(字节)。 包括 -1 (对不支持的列类型无效) 。
精准率 tinyint 如果基于数值,则为该列的精度;否则为 0。
scale tinyint 如果基于数值,则为列的小数位数;否则为 0。
collation_name sysname 如果基于字符,则为该列排序规则的名称;否则为 NULL。
is_nullable bit 1 = 列可为空。
is_ansi_padded bit 1 = 如果列为字符、二进制或变量类型,则该列使用 ANSI_PADDING ON 行为。 始终为 0。
is_rowguidcol bit 1 = 列为声明的 ROWGUIDCOL。 始终为 0。
is_identity bit 1 = 列具有标识值。 始终为 0。
is_computed bit 1 = 列为计算列。 始终为 0。
is_filestream bit 1 = 列为 FILESTREAM 列。 始终为 0。
is_replicated bit 1 = 列已复制。 始终为 0。
is_non_sql_subscribed bit 1 = 列具有非 SQL 订阅服务器。 始终为 0。
is_merge_published bit 1 = 列已合并发布。 始终为 0。
is_dts_replicated bit 1 = 使用 SSIS 复制列。 始终为 0。
is_xml_document bit 1 = 内容为完整的 XML 文档。 始终为 0。
xml_collection_id int 0 = 没有 XML 架构集合。 始终为 0。
default_object_id int 默认对象的 ID;0 = 无默认值。 始终为 0。
rule_object_id int 绑定到列的独立规则的 ID。
0 = 无独立规则。
始终为 0。
is_sparse bit 1 = 列为稀疏列。 始终为 0。
is_column_set bit 1 = 列为列集。 始终为 0。
pdw_node_id int Azure Synapse Analytics 节点的唯一标识符。 NOT NULL

权限

需要 CONTROL SERVER 权限。

另请参阅

Azure Synapse Analytics 和并行数据仓库目录视图
sys.all_columns (Transact-SQL)