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