DATABASE (Lakehouse v1)
Returns the name of the currently selected database. If no database is selected, then this function returns default.
Analyze Syntax
Section titled “Analyze Syntax”func.database()Analyze Examples
Section titled “Analyze Examples”func.database()
┌─────────────────┐│ func.database() │├─────────────────┤│ default │└─────────────────┘SQL Syntax
Section titled “SQL Syntax”DATABASE()SQL Examples
Section titled “SQL Examples”SELECT DATABASE();
┌────────────┐│ database() │├────────────┤│ default │└────────────┘