]> begriffs open source - ai-pg/blob - full-docs/txt/infoschema-sequences.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / infoschema-sequences.txt
1
2 35.47. sequences #
3
4    The view sequences contains all sequences defined in the current
5    database. Only those sequences are shown that the current user has
6    access to (by way of being the owner or having some privilege).
7
8    Table 35.45. sequences Columns
9
10    Column Type
11
12    Description
13
14    sequence_catalog sql_identifier
15
16    Name of the database that contains the sequence (always the current
17    database)
18
19    sequence_schema sql_identifier
20
21    Name of the schema that contains the sequence
22
23    sequence_name sql_identifier
24
25    Name of the sequence
26
27    data_type character_data
28
29    The data type of the sequence.
30
31    numeric_precision cardinal_number
32
33    This column contains the (declared or implicit) precision of the
34    sequence data type (see above). The precision indicates the number of
35    significant digits. It can be expressed in decimal (base 10) or binary
36    (base 2) terms, as specified in the column numeric_precision_radix.
37
38    numeric_precision_radix cardinal_number
39
40    This column indicates in which base the values in the columns
41    numeric_precision and numeric_scale are expressed. The value is either
42    2 or 10.
43
44    numeric_scale cardinal_number
45
46    This column contains the (declared or implicit) scale of the sequence
47    data type (see above). The scale indicates the number of significant
48    digits to the right of the decimal point. It can be expressed in
49    decimal (base 10) or binary (base 2) terms, as specified in the column
50    numeric_precision_radix.
51
52    start_value character_data
53
54    The start value of the sequence
55
56    minimum_value character_data
57
58    The minimum value of the sequence
59
60    maximum_value character_data
61
62    The maximum value of the sequence
63
64    increment character_data
65
66    The increment of the sequence
67
68    cycle_option yes_or_no
69
70    YES if the sequence cycles, else NO
71
72    Note that in accordance with the SQL standard, the start, minimum,
73    maximum, and increment values are returned as character strings.