DROP RECIPIENT

適用于:核取標示為是 Databricks SQL 檢查標示為是 Databricks Runtime 10.3 和更新版本 檢查,只標示為是 Unity 目錄

卸載收件者。 如果收件者不存在於系統中,就會擲回例外狀況。 若要卸載收件者,您必須是其擁有者。

語法

DROP RECIPIENT [ IF EXISTS ] recipient_name

參數

  • IF EXISTS

    如果指定,當收件者不存在時,不會擲回例外狀況。

  • recipient_name

    系統中現有收件者的名稱。 如果名稱不存在,則會擲回例外狀況。

例子

-- Create `other_corp` recipient
> CREATE RECIPIENT other_corp COMMENT 'OtherCorp.com';

-- Retrieve the activation link
> DESCRIBE RECIPIENT other_corp;
  name       created_at                   created_by                 comment       activation_link   active_token_id                      active_token_expiration_time rotated_token_id rotated_token_expiration_time
  ---------- ---------------------------- -------------------------- ------------- ----------------- ------------------------------------ ---------------------------- ---------------- -----------------------------
  other_corp 2022-01-01T00:00:00.000+0000 alwaysworks@databricks.com OtherCorp.com https://send/this 0160c81f-5262-40bb-9b03-3ee12e6d98d7 9999-12-31T23:59:59.999+0000 NULL              NULL

-- Drop the recipient
> DROP RECIPIENT other_corp;

-- Drop the recipient using IF EXISTS.
> DROP RECIPIENT IF EXISTS other_corp;