DATABASE
Learn how to use the DATABASE context function in PlaidCloud Lakehouse. Returns the name of the currently selected database. Includes syntax and examples.
Returns the name of the currently selected database. If no database is selected, then this function returns default.
Analyze Syntax
func.database()
Analyze Examples
func.database()
┌─────────────────┐
│ func.database() │
├─────────────────┤
│ default │
└─────────────────┘
SQL Syntax
DATABASE()
SQL Examples
SELECT DATABASE();
┌────────────┐
│ database() │
├────────────┤
│ default │
└────────────┘