Skip to main content
Adds, modifies, or removes a database comment, regardless of whether it was set before or not. The comment change is reflected in both system.databases and the SHOW CREATE DATABASE query.

Syntax

Examples

To create a DATABASE with a comment:
Query
To modify the comment:
Query
To view the modified comment:
Query
Response
To remove the database comment:
Query
To verify that the comment was removed:
Query
Response
Last modified on July 2, 2026