Name
DROP TRIGGER
-- Removes the definition of a trigger
トリガの定義を削除します。
Synopsis
DROP TRIGGER name ON table
入力
- name
The name of an existing trigger.
既存のトリガの名前です。
- table
The name of a table.
テーブルの名前です。
出力
- DROP
The message returned if the trigger is successfully dropped.
トリガが正常に削除されたときに戻るメッセージです。
- ERROR: DropTrigger: there is no trigger name on relation "table"
This message occurs if the trigger specified does not exist.
指定したトリガが存在しない場合に出力されるメッセージです。
説明
DROP TRIGGER will remove all references to an existing
trigger definition. To execute this command the current
user must be the owner of the trigger.
DROP TRIGGER は、既存のトリガの定義に
対するすべての参照を削除します。このコマンドの実行は
実行するユーザがトリガの所有者でなければなりません。
注意事項
DROP TRIGGER is a Postgres
language extension.
DROP TRIGGER は Postgres
の拡張言語です。
Refer to CREATE TRIGGER for
information on how to create triggers.
トリガを作成する方法につては、
CREATE TRIGGER を参照して下さい。
使用法
Destroy the if_dist_exists trigger
on table films:
テーブル films 上の
if_dist_exists トリガを削除します:
DROP TRIGGER if_dist_exists ON films;
互換性
SQL92
There is no DROP TRIGGER statement in
SQL92.
SQL92 には DROP TRIGGER
文はありません。