Name
DROP VIEW
-- Removes an existing view from a database
既存のビューをデータベースから削除します。
Synopsis
DROP VIEW name
入力
- name
The name of an existing view.
既存のビューの名前です。
出力
- DROP
The message returned if the command is successful.
コマンドが正常に実行された場合に戻るメッセージです。
- ERROR: RewriteGetRuleEventRel: rule "_RETname" not found
This message occurs if the specified view does not exist in
the database.
指定したビューがデータベースに存在しない場合に出力される
メッセージです。
説明
DROP VIEW drops an existing view from the database.
To execute this command you must be the owner of the
view.
DROP VIEW は既存のビューをデータベースから
削除します。このコマンドを実行するには、ビューの所有者でなけ
ればなりません。
注意事項
The Postgres
DROP TABLE statement also drops views.
Postgres の
DROP TABLE 文も同様にビューを削除します。
Refer to CREATE VIEW
for information on how to create views.
ビューを作成するための情報は
CREATE VIEW を参照して下さい。
使用法
This command will remove the view called kinds:
名前が kinds のビューを削除するコマンドです:
DROP VIEW kinds;
互換性
SQL92
SQL92 specifies some additional capabilities for
DROP VIEW:
SQL92 はDROP VIEW に
対して、いくつかの追加機能を規定しています。
DROP VIEW view { RESTRICT | CASCADE }
入力
- RESTRICT
Ensures that only a view with no dependent views or
integrity constraints can be destroyed.
依存関係の有るビューを持たない、あるいは完全性保証制約条件
の付いていないビューだけが削除されることを保証します。
- CASCADE
Any referencing views and integrity constraints
will be dropped as well.
参照しているビューまたは完全性保証条件も削除
します。
注意事項
At present, to remove a referenced view from a
Postgres database,
you must drop it explicitly.
現時点では、参照されたビューを
Postgres データベースから
消去するには、明示的に削除しなければなりません。