TABLES
所有架构范围内的用户定义表。
表1 TABLES
| 列名称 | 类型 | 说明 |
|---|---|---|
| name | name | 对象名称 |
| object_id | oid | 对象 ID |
| principal_id | oid | 对象 owner 的oid。 如果当前owner与schema为同一个owner,则返回NULL。 |
| schema_id | oid | 所属 schema 的 ID |
| parent_object_id | oid | 返回对象所属的 parent 对象 ID |
| type | char(2) | 对象类型。固定返回 U |
| type_desc | nvarchar(60) | 对象类型描述。固定返回 USER_TABLE |
| create_date | timestamp | 对象创建日期 |
| modify_date | timestamp | 对象修改日期 |
| is_ms_shipped | bit | 是否为系统内部对象 如系统表、视图等返回 1用户表等返回 0 |
| is_published | bit | 对象是否发布 |
| is_schema_published | bit | 是否只发布架构 |
| lob_data_space_id | oid | 对应的 toast 表的 ID |
| filestream_data_space_id | int | 返回 NULL |
| max_column_id_used | int | 列的最大 ID |
| lock_on_bulk_load | bit | 返回 0 |
| uses_ansi_nulls | bit | 返回 1 |
| is_replicated | bit | 1 表示为基于事务的发布 |
| has_replication_filter | bit | 返回 0 |
| is_merge_published | bit | 返回 0 |
| is_sync_tran_subscribed | bit | 返回 0 |
| has_unchecked_assembly_data | bit | 返回 0 |
| text_in_row_limit | int | 返回 0 |
| large_value_types_out_of_row | bit | 返回 0 |
| is_tracked_by_cdc | tinyint | 返回 0 |
| lock_escalation | tinyint | 返回 1 |
| lock_escalation_desc | nvarchar(60) | 返回 DISABLE |
| is_filetable | bit | 返回 0 |
| is_memory_optimized | bit | 1 表示该表为MOT表 |
| durability | tinyint | 返回 0 |
| durability_desc | nvarchar(60) | 返回 SCHEMA_AND_DATA |
| temporal_type | tinyint | 2 为临时表 0 其它情况 |
| temporal_type_desc | nvarchar(60) | SYSTEM_VERSIONED_TEMPORAL_TABLE 为临时表 NON_TEMPORAL_TABLE 其它情况 |
| history_table_id | int | 返回 NULL |
| is_remote_data_archive_enabled | bit | 返回 0 |
| is_external | bit | 1 表示外部表 |
| history_retention_period | int | 返回 0 |
| history_retention_period_unit | int | 返回 -1 |
| history_retention_period_unit_desc | nvarchar(10) | 返回 INFINITE |
| is_node | bit | 图数据库的节点表 |
| is_edge | bit | 图数据库的边表 |
意见反馈