Warning:CockroachDB v20.2 is no longer supported. For more details, see the Release Support Policy.
ALTER DATABASE statement applies a schema change to a database. For information on using
ALTER DATABASE, see the pages for its relevant subcommands.
This statement performs a schema change. For more information about how online schema changes work in CockroachDB, see Online Schema Changes.
||Configure replication zones for a database.|
||New in v20.2: Convert a database to a schema.|
||New in v20.2: Change the owner of a database.|
||Change the name of a database.|
Viewing schema changes
This schema change statement is registered as a job. You can view long-running jobs with