all_tab_columns
 
                  更新时间 2025-02-05 09:36:56
                 
 
                    最近更新时间: 2025-02-05 09:36:56
                  
 本页介绍天翼云TeleDB数据库系统视图all_tab_columns的内容。
 视图的作用:提供关于数据库中所有可见表的列信息。
| 名称 | 类型 | 定义 | 
|---|---|---|
| owner | name | 列所在的表的所有者名称 | 
| table_schema | name | 列所在的表的模式(schema)名称 | 
| table_name | name | 列所在的表的名称 | 
| column_name | name | 列的名称 | 
| data_type | text | 列的数据类型 | 
| data_type_owner | name | 数据类型的所有者名称 | 
| data_length | integer | 列的数据长度,对于字符类型使用_pg_char_max_length函数,对于数值类型使用_pg_numeric_precision函数 | 
| data_precision | integer | 列的数值精度,使用_pg_numeric_precision函数获取 | 
| data_scale | integer | 列的数值小数位数,使用_pg_numeric_scale函数获取 | 
| nullable | text | 列是否可以为NULL | 
| column_id | smallint | 列的标识符,对应于attnum | 
| data_default | text | 列的默认值,使用pg_get_expr函数获取 | 
