Syntax
DATABASE()
Purpose
DATABASE() returns the name of the current database in the utf8mb4 character set.
If the database is not specified by using the USE statement, NULL is returned.
Examples
Return the name of the current database.
obclient> SELECT DATABASE();
+------------+
| DATABASE() |
+------------+
| oceanbase |
+------------+
1 row in set