current_database()(当前数据库)

使用 “版本 ”下拉列表切换服务。 了解有关导航的详细信息
适用于:✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel

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

语法

current_database()

详细了解语法约定

返回

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

例子

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