語法 DROP OPERATOR id ( type | NONE [,...] ) 輸入 id 一個現存的操作符的標識. type 函數參數的類型.
輸出 DROP 命令成功執行的返回函數. ERROR: RemoveOperator: binary operator 'oper' taking 'type' and 'type2' does not exist 如果聲明的二目操作符不存在,返回此信息. ERROR: RemoveOperator: left unary operator 'oper' taking 'type' does not exist 如果聲明的左目操作符不存在,返回此信息. ERROR: RemoveOperator: right unary operator 'oper' taking 'type' does not exist 如果聲明的右目操作符不存在,返回此信息.
描述 DROP OPERATOR 語句從數據庫中刪除一個現存的操作符.要執行這個命令,你必須是操作符所有者.
左目操作符的右類型或右目操作符的左類型可以聲明為 NONE.
注意 DROP OPERATOR 語句是 Postgres 語言擴展. 請參考 CREATE OPERATOR 獲取如何創建操作符的信息.
刪除任何依賴于被刪除的操作符的訪問模式和操作符表是用戶的責任.
用法 將用于 int4 的冪操作符 a^n 刪除: DROP OPERATOR ^ (int4, int4); 刪除用于布爾變量的左目負號操作符(b !): DROP OPERATOR ! (none, bool); 刪除用于 int4 的右目介乘操作符(! i): DROP OPERATOR ! (int4, none); 兼容性 SQL92 在 SQL92 中沒有 DROP OPERATOR 語句.