Catalog-Specific Functions and Variables
Catalog Functions
catalog()
`catalog()
returns the name of the current catalog.`
MariaDB [def.test]> select catalog(); +-----------+ | catalog() | +-----------+ | def | +-----------+
Catalog Variables
@@catalogs
One can check if a server supports catalogs with:
SELECT @@catalogs; +------------+ | @@catalogs | +------------+ | 1 | +------------+
1 means that the server is configured for catalogs.
This page is licensed: CC BY-SA / Gnu FDL
Last updated
Was this helpful?