DROP OPERATOR 中文man页面

系统
DROP OPERATOR 语句从数据库中删除一个现存的操作符。 要执行这个命令,你必须是操作符所有者。

NAME

DROP OPERATOR - 删除一个操作符

SYNOPSIS

DROP OPERATOR name ( lefttype | NONE , righttype | NONE ) [ CASCADE | RESTRICT ]

DESCRIPTION 描述

DROP OPERATOR 语句从数据库中删除一个现存的操作符。 要执行这个命令,你必须是操作符所有者。  

PARAMETERS 参数

name

 一个现存的操作符的名字(可以有模式修饰)。
lefttype

 该操作符左参数的类型。如果该操作符没有左参数, 写 NONE。
righttype

 该操作符右参数的类型。如果该操作符没有右参数, 写 NONE。
CASCADE

 自动删除依赖于此操作符的对象。
RESTRICT

 如果有任何依赖对象则拒绝删除此操作符。这个是缺省。

EXAMPLES 例子


 将用于integer的幂操作符 a^n 删除:

DROP OPERATOR ^ (integer, integer);


 为类型 bit 删除左单目位操作符 ~b: ~b for type bit:

DROP OPERATOR ~ (none, bit);


 删除用于 integer 的阶乘 (x!) :

DROP OPERATOR ! (integer, none);

COMPATIBILITY 兼容性


 在 SQL 标准里没有 DROP OPERATOR 语句。  

SEE ALSO 参见

CREATE OPERATOR [create_operator(7)]

#p#

NAME

DROP OPERATOR - remove an operator

SYNOPSIS

DROP OPERATOR name ( lefttype | NONE , righttype | NONE ) [ CASCADE | RESTRICT ]

DESCRIPTION

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

PARAMETERS

name
The name (optionally schema-qualified) of an existing operator.
lefttype
The data type of the operator's left operand; write NONE if the operator has no left operand.
righttype
The data type of the operator's right operand; write NONE if the operator has no right operand.
CASCADE
Automatically drop objects that depend on the operator.
RESTRICT
Refuse to drop the operator if any objects depend on it. This is the default.

EXAMPLES

Remove the power operator a^b for type integer:

DROP OPERATOR ^ (integer, integer);

Remove the left unary bitwise complement operator ~b for type bit:

DROP OPERATOR ~ (none, bit);

Remove the right unary factorial operator x! for type integer:

DROP OPERATOR ! (integer, none);

COMPATIBILITY

There is no DROP OPERATOR statement in the SQL standard.  

SEE ALSO

CREATE OPERATOR [create_operator(7)]

责任编辑:韩亚珊 来源: CMPP.net
相关推荐

2011-08-24 14:38:16

DROP OPERAT中文man

2011-08-24 14:13:27

DROP CONVER中文man

2011-08-24 14:31:48

DROP LANGUA中文man

2011-08-24 14:16:18

DROP DATABA中文man

2011-08-24 14:19:14

DROP DOMAIN中文man

2011-08-24 11:23:20

CREATE OPER中文man

2011-08-24 14:06:36

DROP AGGREG中文man

2011-08-24 14:10:10

DROP CAST中文man

2011-08-24 14:25:43

DROP GROUP中文man

2011-08-24 14:40:50

DROP RULE中文man

2011-08-24 14:28:47

DROP INDEX中文man

2011-08-24 14:22:11

DROP FUNCTI中文man

2011-08-24 11:26:46

CREATE OPER中文man

2011-08-24 14:43:21

drop_schema中文man

2011-08-24 14:59:50

drop_user中文man

2011-08-24 14:49:13

drop_table中文man

2011-08-24 15:03:08

drop_view中文man

2011-08-24 14:57:06

drop_type中文man

2011-08-24 14:46:42

drop_sequen中文man

2011-08-24 14:52:31

drop_trigge中文man
点赞
收藏

51CTO技术栈公众号