drop_type 中文man页面

系统
DROP TYPE 将从系统表里删除用户定义的类型。 只有类型所有者可以删除类型。

NAME

DROP TYPE - 删除一个用户定义数据类型

SYNOPSIS

DROP TYPE name [, ...] [ CASCADE | RESTRICT ]

DESCRIPTION 描述

DROP TYPE 将从系统表里删除用户定义的类型。 只有类型所有者可以删除类型。  

PARAMETERS 参数

name

 要删除的类型名(可以有模式修饰)。
CASCADE

 自动删除依赖该类型的对象(比如表字段,函数,操作符等等)。
RESTRICT

 如果有依赖对象,则拒绝删除该类型。这个是缺省。

EXAMPLES 例子


 删除 box 类型:

DROP TYPE box;

COMPATIBILITY 兼容性


 这条命令类似于 SQL 标准里对应的命令,但是要注意,PostgreSQL  里的 CREATE TYPE 命令和数据类型扩展机制是和 SQL 标准里不同的。  

SEE ALSO 参见

CREATE TYPE [create_type(7)]

#p#

NAME

DROP TYPE - remove a data type

SYNOPSIS

DROP TYPE name [, ...] [ CASCADE | RESTRICT ]

DESCRIPTION

DROP TYPE will remove a user-defined data type. Only the owner of a type can remove it.  

PARAMETERS

name
The name (optionally schema-qualified) of the data type to remove.
CASCADE
Automatically drop objects that depend on the type (such as table columns, functions, operators).
RESTRICT
Refuse to drop the type if any objects depend on it. This is the default.

EXAMPLES

To remove the data type box:

DROP TYPE box;

COMPATIBILITY

This command is similar to the corresponding command in the SQL standard, but note that the CREATE TYPE command and the data type extension mechanisms in PostgreSQL differ from the SQL standard.  

SEE ALSO

CREATE TYPE [create_type(7)]

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

2011-08-24 14:13:27

DROP CONVER中文man

2011-08-24 14:31:48

DROP LANGUA中文man

2011-08-24 14:35:33

DROP OPERAT中文man

2011-08-24 14:16:18

DROP DATABA中文man

2011-08-24 14:19:14

DROP DOMAIN中文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 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 13:39:44

CREATE TYPE中文man

2011-08-24 14:38:16

DROP OPERAT中文man

2011-08-24 14:46:42

drop_sequen中文man

2011-08-24 14:52:31

drop_trigge中文man

2011-08-24 16:48:36

man中文man
点赞
收藏

51CTO技术栈公众号