On this page
Warning:
As of May 10, 2022, CockroachDB v20.2 is no longer supported. For more details, refer to the Release Support Policy.
The SHOW SEQUENCES
statement lists all sequences in a database.
Required privileges
No privileges are required to list the sequences in a database.
Synopsis
Parameters
Parameter | Description |
---|---|
name |
The name of the database for which to list sequences. When omitted, the sequences in the current database are listed. |
Example
> CREATE SEQUENCE sequence_test;
> SHOW SEQUENCES;
sequence_schema | sequence_name
------------------+----------------
public | sequence_test
(1 row)