Skip to main content
VeloDB Cloud 4.x·Apache Doris 3.x·"Since X.Y" tags refer to Doris versionsversion mapping →

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 |
+------------+------------+