SCHEMA() is a synonym for DATABASE(). : SCHEMA « Information Functions « MySQL Tutorial






mysql>
mysql> select SCHEMA();
+----------+
| SCHEMA() |
+----------+
| test     |
+----------+
1 row in set (0.00 sec)








20.12.SCHEMA
20.12.1.SCHEMA() is a synonym for DATABASE().