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()

Description

DATEBASE() returns the name of the currently-connected database as a VARCHAR type string. DATABASE and SCHEMA are used interchangeably.

Syntax

DATABASE()

SCHEMA()

Example

SELECT DATABASE(), SCHEMA();

;xr

 

=== <Result of SELECT Command in Line 1> ===

 

   database()            schema()

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

  'demodb'              'demodb'