==ALTER DB==
{{Mark|Updated with BaseX 9.7:}} Overwrite existing databases.
{| width='100%'
|-
| '''Errors'''
|The command fails if the target database already exists, if the source database does not exist or is currently locked, or if it could not be renamed for some other reason.
|-
| '''Examples'''
==COPY==
{{Mark|Updated with BaseX 9.7:}} Overwrite existing databases.
{| width='100%'
|-
| '''Errors'''
|The command fails if the target database already exists, or if the source database does not exist.
|}
=Changelog=
;Version 9.7
* Updated: {{Command|ALTER DB}}, {{Command|COPY}}: Overwrite existing databases.
;Version 9.3