DROP RECIPIENT

적용 대상:검사 '예'로 표시 Databricks SQL 검사 '예'로 표시 Databricks Runtime 10.4 LTS 이상 검사 '예'로 표시 Unity 카탈로그만 해당

수신자를 삭제합니다. 수신자가 시스템에 없으면 예외가 throw됩니다. 받는 사람을 삭제하려면 해당 소유자가 되어야 합니다.

구문

DROP RECIPIENT [ IF EXISTS ] recipient_name

매개 변수

  • IF EXISTS

    지정하면 수신자가 없을 때 예외가 throw되지 않습니다.

  • recipient_name

    시스템에 있는 기존 수신자의 이름입니다. 이름이 없으면 예외가 throw됩니다.

예제

-- 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;