跳到主要内容

DATABASE

Returns the name of the currently selected database. If no database is selected, then this function returns default.

Syntax

DATABASE()

Examples

SELECT DATABASE();

┌────────────┐
database()
├────────────┤
default
└────────────┘
开始使用 Databend Cloud
低成本
快速分析
多种数据源
弹性扩展
注册