支援的版本: 目前 (17) / 16 / 15 / 14 / 13
開發版本: devel
不支援的版本: 12 / 11 / 10 / 9.6 / 9.5 / 9.4 / 9.3 / 9.2

35.60. user_defined_types #

檢視 user_defined_types 目前包含在目前資料庫中定義的所有複合類型。 只會顯示目前使用者有權存取的類型(透過身為擁有者或具有某些權限的方式)。

SQL 知道兩種使用者定義的類型:結構化類型(在 PostgreSQL 中也稱為複合類型)和相異類型(未在 PostgreSQL 中實作)。 為了面向未來,請使用欄位 user_defined_type_category 來區分這些類型。 其他使用者定義的類型,例如基本類型和列舉,它們是 PostgreSQL 擴充功能,不會在此處顯示。 如需網域,請參閱 第 35.23 節

表 35.58. user_defined_types 欄位

欄位 類型

描述

user_defined_type_catalog sql_identifier

包含類型的資料庫名稱(永遠是目前資料庫)

user_defined_type_schema sql_identifier

包含類型的綱要名稱

user_defined_type_name sql_identifier

類型名稱

user_defined_type_category character_data

目前永遠是 STRUCTURED

is_instantiable yes_or_no

適用於 PostgreSQL 中未提供的功能

is_final yes_or_no

適用於 PostgreSQL 中未提供的功能

ordering_form character_data

適用於 PostgreSQL 中未提供的功能

ordering_category character_data

適用於 PostgreSQL 中未提供的功能

ordering_routine_catalog sql_identifier

適用於 PostgreSQL 中未提供的功能

ordering_routine_schema sql_identifier

適用於 PostgreSQL 中未提供的功能

ordering_routine_name sql_identifier

適用於 PostgreSQL 中未提供的功能

reference_type character_data

適用於 PostgreSQL 中未提供的功能

data_type character_data

適用於 PostgreSQL 中未提供的功能

character_maximum_length cardinal_number

適用於 PostgreSQL 中未提供的功能

character_octet_length cardinal_number

適用於 PostgreSQL 中未提供的功能

character_set_catalog sql_identifier

適用於 PostgreSQL 中未提供的功能

character_set_schema sql_identifier

適用於 PostgreSQL 中未提供的功能

character_set_name sql_identifier

適用於 PostgreSQL 中未提供的功能

collation_catalog sql_identifier

適用於 PostgreSQL 中未提供的功能

collation_schema sql_identifier

適用於 PostgreSQL 中未提供的功能

collation_name sql_identifier

適用於 PostgreSQL 中未提供的功能

numeric_precision cardinal_number

適用於 PostgreSQL 中未提供的功能

numeric_precision_radix cardinal_number

適用於 PostgreSQL 中未提供的功能

numeric_scale cardinal_number

適用於 PostgreSQL 中未提供的功能

datetime_precision cardinal_number

適用於 PostgreSQL 中未提供的功能

interval_type character_data

適用於 PostgreSQL 中未提供的功能

interval_precision cardinal_number

適用於 PostgreSQL 中未提供的功能

source_dtd_identifier sql_identifier

適用於 PostgreSQL 中未提供的功能

ref_dtd_identifier sql_identifier

適用於 PostgreSQL 中未提供的功能


提交更正

如果您在文件中發現任何不正確、與您使用特定功能的經驗不符或需要進一步說明的地方,請使用此表單來報告文件問題。