Cloud
current_database
The current_database() is a session information function that returns the current database’s name.
Examples
This example shows how to obtain the name of the currently connected database:
SELECT current_database();
The query returns the output:
+------------+
| f |
+------------+
| redpanda |
+------------+
Was this helpful?