v.23.8Improvement

SCHEMA Alias Added for DATABASE to Enhance MySQL Compatibility

SCHEMA was added as alias for DATABASE to improve MySQL compatibility. #53587 (Daniël van Eeden).
SCHEMA keyword added as an alias for DATABASE to enhance MySQL compatibility in ClickHouse.

Why it matters

The addition of the SCHEMA keyword as a synonym for DATABASE solves compatibility issues for users migrating from MySQL or working in mixed environments. It simplifies query adjustments and improves interoperability by allowing queries using standard MySQL terminology.

How to use it

Users can now use SCHEMA interchangeably with DATABASE in their SQL queries, for example:

SHOW TABLES FROM <schema_name>;

This requires no additional configuration—simply replace or use SCHEMA where DATABASE was previously used.