Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

Versions available for this page: CUBRID 8.3.0 |  CUBRID 8.3.1 |  CUBRID 8.4.0 |  CUBRID 8.4.1 |  CUBRID 8.4.3 |  CUBRID 9.0.0 | 

DATABASE/SCHEMA Functions

Description

The functions DATABASE and SCHEMA are used interchangeably. They return the name of currently-connected database as a VARCHAR type.

Syntax

DATABASE()

SCHEMA()

Example

SELECT DATABASE(), SCHEMA();

   database()            schema()

============================================

  'demodb'              'demodb'