你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

current_database()(当前数据库)

适用于:✅Azure 数据资源管理器Azure Monitor✅ Sentinel

PRovides 范围中数据库的名称(如果未指定其他数据库,则会解析所有查询实体的数据库)。

语法

current_database()

详细了解语法约定

返回

以类型 string形式返回作用域中数据库的名称。

例子

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