DATABASE

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    
└────────────┘
Last modified April 22, 2024 at 7:30 PM EST: updated context functions (14d970e)