DROP OPERATOR

Name

DROP OPERATOR  --  Removes an operator from the database データベースから演算子を削除します。

Synopsis

DROP OPERATOR id ( type | NONE [,...] )
  

入力

id

The identifier of an existing operator.

存在する演算子の識別子です。

type

The type of function parameters.

関数パラメータの型です。

出力

DROP

The message returned if the command is successful.

コマンドが正常に実行されたときに返るメッセージです。

ERROR: RemoveOperator: binary operator 'oper' taking 'type' and 'type2' does not exist

This message occurs if the specified binary operator does not exist.

指定された二項演算子が存在しないときに出力されるメッセージです。

ERROR: RemoveOperator: left unary operator 'oper' taking 'type' does not exist

This message occurs if the specified left unary operator specified does not exist.

指定された左単項演算子が存在しない場合に出力されるメッセージです。

ERROR: RemoveOperator: right unary operator 'oper' taking 'type' does not exist

This message occurs if the specified right unary operator specified does not exist.

指定された右単項演算子が存在しない場合に出力されるメッセージです。

説明

DROP OPERATOR drops an existing operator from the database. To execute this command you must be the owner of the operator.

DROP OPERATOR はデータベースから存在する 演算子を削除します。このコマンドの実行にはその演算子の所有者 であることが必須です。

The left or right type of a left or right unary operator, respectively, may be specified as NONE.

左または右単項演算子の左または右の型をそれぞれ NONE と指定しても構いません。

注意事項

The DROP OPERATOR statement is a Postgres language extension.

DROP OPERATOR 文は Postgres の拡張言語です。

Refer to CREATE OPERATOR for information on how to create operators.

演算子を作成するには CREATE OPERATOR を参照して下さい。

It is the user's responsibility to remove any access methods and operator classes that rely on the deleted operator.

削除された演算子に依存するアクセスメソッドと演算子クラスを 削除するのはユーザの責任です。

使用法

Remove power operator a^n for int4:

int4 に対するベキ乗演算子 a^n を削除するには次のようにします:

DROP OPERATOR ^ (int4, int4);
   

Remove left unary negation operator (b !) for booleans:

ブール値に対する左単項否定演算子 (b !) を 削除するには次のようにします:

DROP OPERATOR ! (none, bool);
   

Remove right unary factorial operator (! i) for int4:

int4 に対する右単項階乗演算子 (! i) を削除するには次のようにします:

DROP OPERATOR ! (int4, none);
   

互換性

SQL92

There is no DROP OPERATOR in SQL92.

SQL92DROP OPERATOR は ありません。