DROP SEQUENCE

Name

DROP SEQUENCE  --  Removes an existing sequence 既存のシーケンスを削除する

Synopsis

DROP SEQUENCE name [, ...]
  

入力

name

The name of a sequence.

シーケンスの名前。

出力

DROP

The message returned if the sequence is successfully dropped.

シーケンスの削除が成功した場合に返されるメッセージです。

WARN: Relation "name" does not exist.

This message occurs if the specified sequence does not exist.

このメッセージは指定したシーケンスが存在しなかった場合に 表示されます。

説明

DROP SEQUENCE removes sequence number generators from the data base. With the current implementation of sequences as special tables it works just like the DROP TABLE statement.

DROP SEQUENCE は、シーケンス番号生成機構を データベースから取り去ります。現在のシーケンスは、特別な テーブルとして実装されているので、これは DROP TABLE 文と同じ動作をします。

注意

The DROP SEQUENCE statement is a Postgres language extension.

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

Refer to the CREATE SEQUENCE statement for information on how to create a sequence.

シーケンスの作成方法は、CREATE SEQUENCE を 参照してください。

使用法

To remove sequence serial from database:

serial というシーケンスをデータベースから 削除するには以下のようにします:

DROP SEQUENCE serial;
   

互換性

SQL92

There is no DROP SEQUENCE in SQL92.

SQL92 には、 DROP SEQUENCE は有りません。