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 |
The functions DATABASE and SCHEMA are used interchangeably. They return the name of currently-connected database as a VARCHAR type.
DATABASE()
SCHEMA()
SELECT DATABASE(), SCHEMA();
database() schema()
============================================
'demodb' 'demodb'