Catalog-Specific Functions and Variables

Catalogs are planned for an upcoming release, and don't yet appear in any current releases.

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?