SHOW RECIPIENTS
適用於: Databricks SQL
Databricks Runtime 10.4 LTS 和更新版本,
Unity Catalog only
列出符合選擇性提供的正則表達式模式的收件者。 如果沒有提供模式,則命令會列出中繼存放區中的所有收件者。
語法
SHOW RECIPIENTS [ [ LIKE ] regex_pattern ]
參數
regex_pattern
正則表達式模式,用來篩選 語句的結果。
-
*
除了 和|
字元以外,模式的運作方式就像正則表達式。 -
*
單獨比對 0 或多個字元,並|
用來分隔多個不同的正則表示式,其中任何一個都可以比對。 - 前置和尾端空白會在處理之前,先在輸入模式中修剪。 模式比對不區分大小寫。
-
範例
> CREATE RECIPIENT other_org COMMENT 'other.org';
> CREATE RECIPIENT better_corp COMMENT 'better.com';
> SHOW RECIPIENTS;
name created_at created_by comment
----------- ---------------------------- -------------------------- ----------
other_org 2022-01-01T00:00:00.000+0000 alwaysworks@databricks.com other.org
better_corp 2022-01-01T00:00:01.000+0000 alwaysworks@databricks.com better.com
> SHOW RECIPIENTS LIKE 'other_org';
name number_of_activated_token created_at created_by
--------- ------------------------- ---------------------------- --------------------------
other_org 0 2022-01-01T00:00:00.000+0000 alwaysworks@databricks.com other.org