current_database function (Databricks SQL)

Returns the current schema.

Syntax

current_database()

Arguments

This function takes no arguments

Returns

A STRING.

This function is an alias for current_schema function (Databricks SQL).

Examples

> SELECT current_database();
 default