DATABASE

Learn how to use the DATABASE utility function in PlaidCloud Lakehouse. Returns the name of the current database - see syntax, examples, and output.

Returns the name of the current database.

Analyze Syntax

func.database()

Analyze Examples

func.database()

┌───────────────┐
 'my_database'  
└───────────────┘

SQL Syntax

DATABASE()

SQL Examples

SELECT DATABASE();

┌─────────────┐
 my_database  
└─────────────┘