<budget_ name>!REFRESH_ USAGE¶
使预算检索消耗数据,以便预算可以将其与支出限额进行比较,而无需等待下一次自动检索数据。
语法
返回
返回用于指示使用情况是否已成功刷新的 VARCHAR 值。
访问控制要求
为自定义预算调用此方法需要以下最低权限和角色:
- ADMIN instance role for the budget instance.
- 对包含预算实例的数据库和架构的 USAGE 权限。
For more information, see Budgets roles and privileges.
使用说明
- 此方法只能在 自定义预算 实例上调用。
- 预算需要几分钟时间才能刷新为新的使用情况数据。
-
Calling this method does not return the object. Because of this, you can’t use method chaining to call another method on the return value of this method. Instead, call each method in a separate SQL statement.
示例
Retrieve consumption data for the budget_db.budget_schema.my_budget budget: