VeloDB Cloud
SQL Reference
SQL Functions
Scalar Functions
System Functions
DATABASE

DATABASE

Description

Get the database of the current sql client connection.

Alias

  • SCHEMA

Syntax

DATABASE()

or

SCHEMA()

Return Value

The name of the database connected to the current sql client.

Examples

select database(),schema();
+------------+------------+
| database() | database() |
+------------+------------+
| test       | test       |
+------------+------------+