user_tab_columns
更新時間 2025-02-05 09:36:57
最近更新時間: 2025-02-05 09:36:57
分享文章
本頁介紹天翼云TeleDB數據庫系統視圖user_tab_columns的內容。
視圖的作用:提供當前用戶所有可見表的列信息。
| 名稱 | 類型 | 定義 |
|---|---|---|
| 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函數獲取 |