SHOW SEQUENCES
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_name
sequence_name
sequence_test
(1 row)
See also
当前内容版权归 cockroachlabs.com 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 cockroachlabs.com .