DROP DATABASE

Name

DROP DATABASE  --  Destroys an existing database 既存のデータベースを削除します。

Synopsis

DROP DATABASE name
  

入力

name

The name of an existing database to remove.

削除する既存のデータベース名です。

出力

DESTROYDB

This message is returned if the command is successful.

コマンドが成功したときに戻るメッセージです。

WARN: destroydb: database "name" does not exist.

This message occurs if the specified database does not exist.

このメッセージは指定したデータベースが存在しない場合出力されます。

ERROR: destroydb cannot be executed on an open database

This message occurs if the specified database does not exist.

このメッセージは指定したデータベースが存在しない場合出力されます。 訳注:このメッセージはある開いているデータベース上でデータベース の削除が出来なかった場合に出力されます。 (上記と異なり存在してもパーミッションの関連などで出来ない 場合を指していると解釈します。)

説明

DROP DATABASE removes the catalog entries for an existing database and deletes the directory containing the data. It can only be executed by the database administrator (See the CREATE DATABASE command for details).

DROP DATABASE は存在するデータベースのカタログ 項目を取り去り、データを所有しているディレクトリを削除します。 データベースの管理者のみ実行できます。 (詳細は CREATE DATABASE コマンドを参照して 下さい。)

注意事項

DROP DATABASE statement is a Postgres language extension.

DROP DATABASE 文は Postgres の拡張言語です。

Tip: This query cannot be executed while connected to the target database. It is usually preferable to use the destroydb script instead.

この問合せは対象となるデータベースに接続している場合 実行できません。 代わりとして destroydb スクリプトを常に使うよう推奨します。

Refer to the CREATE DATABASE statement for information on how to create a database.

データベースを作成するためには CREATE DATABASE 文を参照して下さい。

互換性

SQL92

There is no DROP DATABASE in SQL92.

SQL92DROP DATABASE はありません。