NAME
DROP VIEW - 删除一个视图
SYNOPSIS
DROP VIEW name [, ...] [ CASCADE | RESTRICT ]
DESCRIPTION 描述
DROP VIEW 从数据库中删除一个现存的视图。 执行这条命令必须是视图的所有者。
PARAMETERS 参数
- name
要删除的视图名称(可以有模式修饰)。- CASCADE
自动删除依赖此视图的对象(比如其它视图)。- RESTRICT
如果有依赖对象存在,则拒绝删除此视图。这个是缺省。
EXAMPLES 例子
下面命令将删除视图 kinds:
DROP VIEW kinds;
COMPATIBILITY 兼容性
这条命令遵循 SQL 标准。
SEE ALSO 参见
CREATE VIEW [create_view(7)]
#p#
NAME
DROP VIEW - remove a view
SYNOPSIS
DROP VIEW name [, ...] [ CASCADE | RESTRICT ]
DESCRIPTION
DROP VIEW drops an existing view. To execute this command you must be the owner of the view.
PARAMETERS
- name
- The name (optionally schema-qualified) of the view to remove.
- CASCADE
- Automatically drop objects that depend on the view (such as other views).
- RESTRICT
- Refuse to drop the view if any objects depend on it. This is the default.
EXAMPLES
This command will remove the view called kinds:
DROP VIEW kinds;
COMPATIBILITY
This command conforms to the SQL standard.
SEE ALSO
CREATE VIEW [create_view(7)]