Skip to main content
VeloDB Cloud 26.x is based on Doris 4.x. Versions in this section refer to Doris versions. See Version 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 |
+------------+------------+