current_database()

返回作用域中数据库的名称(如果未指定其他数据库,则将解析所有查询实体的数据库)。

语法

current_database()

详细了解语法约定

返回

作用域中数据库的名称作为 string 类型的值。

示例

print strcat("Database in scope: ", current_database())