Note:
Cockroach Labs supports the current stable release and two releases prior. Therefore, this version will no longer be supported after the Fall 2019 release.

The ALTER DATABASE statement applies a schema change to a database.

Note:
To understand how CockroachDB changes schema elements without requiring table locking or other user-visible downtime, see Online Schema Changes in CockroachDB.

For information on using ALTER DATABASE, see the documents for its relevant subcommands.

Subcommand Description
RENAME Change the name of a database.


Yes No