SHOW SEQUENCES

On this page Carat arrow pointing down
Warning:
GA releases for CockroachDB v23.1 are no longer supported. Cockroach Labs will stop providing LTS Assistance Support for v23.1 LTS releases on November 13, 2025. Prior to that date, upgrade to a more recent version to continue receiving support. 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

SHOW SEQUENCES FROM name

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

icon/buttons/copy
> CREATE SEQUENCE sequence_test;
icon/buttons/copy
> SHOW SEQUENCES;
  sequence_schema | sequence_name
------------------+----------------
  public          | sequence_test
(1 row)

See also


Yes No
On this page

Yes No