バージョンごとのドキュメント一覧

DROP EVENT TRIGGER

DROP EVENT TRIGGER <refpurpose>remove an event trigger</refpurpose> — イベントトリガを削除する

概要

DROP EVENT TRIGGER [ IF EXISTS ] name [ CASCADE | RESTRICT ]

説明

<title>Description</title>

<command>DROP EVENT TRIGGER</command> removes an existing event trigger. To execute this command, the current user must be the owner of the event trigger. DROP EVENT TRIGGERは既存のイベントトリガを削除します。 このコマンドを実行するためには、現在のユーザがイベントトリガの所有者でなければなりません。

パラメータ

<title>Parameters</title>
IF EXISTS

Do not throw an error if the event trigger does not exist. A notice is issued in this case. イベントトリガが存在しない場合でもエラーを発生しません。 この場合は注意が発生します。

name

The name of the event trigger to remove. 削除対象のイベントトリガの名前です。

CASCADE

Automatically drop objects that depend on the trigger, and in turn all objects that depend on those objects (see <xref linkend="ddl-depend"/>). トリガに依存するオブジェクトを自動的に削除し、さらにそれらのオブジェクトに依存するすべてのオブジェクトも削除します(5.14参照)。

RESTRICT

Refuse to drop the trigger if any objects depend on it. This is the default. 依存するオブジェクトが存在する場合はトリガの削除を取りやめます。 これがデフォルトです。

<title>Examples</title>

Destroy the trigger <literal>snitch</literal>: トリガsnitchを破棄します。

DROP EVENT TRIGGER snitch;

互換性

<title>Compatibility</title>

There is no <command>DROP EVENT TRIGGER</command> statement in the SQL standard. DROP EVENT TRIGGER文は標準SQLにはありません。

関連項目

<title>See Also</title> CREATE EVENT TRIGGER, ALTER EVENT TRIGGER