Postgresql 中文操作指南
37.47. sequences #
视图 sequences 包含当前数据库中定义的所有序列。仅显示当前用户有权访问的那些序列(通过所有者或具有一些特权)。
The view sequences contains all sequences defined in the current database. Only those sequences are shown that the current user has access to (by way of being the owner or having some privilege).
Table 37.45. sequences Columns
Table 37.45. sequences Columns
Column Type Description |
sequence_catalog sql_identifier Name of the database that contains the sequence (always the current database) |
sequence_schema sql_identifier Name of the schema that contains the sequence |
sequence_name sql_identifier Name of the sequence |
data_type character_data The data type of the sequence. |
numeric_precision cardinal_number This column contains the (declared or implicit) precision of the sequence data type (see above). The precision indicates the number of significant digits. It can be expressed in decimal (base 10) or binary (base 2) terms, as specified in the column numeric_precision_radix. |
numeric_precision_radix cardinal_number This column indicates in which base the values in the columns numeric_precision and numeric_scale are expressed. The value is either 2 or 10. |
numeric_scale cardinal_number This column contains the (declared or implicit) scale of the sequence data type (see above). The scale indicates the number of significant digits to the right of the decimal point. It can be expressed in decimal (base 10) or binary (base 2) terms, as specified in the column numeric_precision_radix. |
start_value character_data The start value of the sequence |
minimum_value character_data The minimum value of the sequence |
maximum_value character_data The maximum value of the sequence |
increment character_data The increment of the sequence |
cycle_option yes_or_no YES if the sequence cycles, else NO |
请注意,根据 SQL 标准,起始、最小、最大和增量值都将作为字符字符串返回。
Note that in accordance with the SQL standard, the start, minimum, maximum, and increment values are returned as character strings.