バージョンごとのドキュメント一覧

DROP COLLATION

DROP COLLATION <refpurpose>remove a collation</refpurpose> — 照合順序を削除する

概要

DROP COLLATION [ IF EXISTS ] name [ CASCADE | RESTRICT ]

説明

<title>Description</title>

<command>DROP COLLATION</command> removes a previously defined collation. To be able to drop a collation, you must own the collation. DROP COLLATIONは事前に定義された照合順序を削除します。 照合順序を削除するためには、その照合順序を所有していなければなりません

パラメータ

<title>Parameters</title>
IF EXISTS

Do not throw an error if the collation does not exist. A notice is issued in this case. 照合順序が存在しない場合でもエラーになりません。 この場合注意メッセージが発行されます。

name

The name of the collation. The collation name can be schema-qualified. 照合順序の名前です。照合順序名はスキーマ修飾可能です。

CASCADE

Automatically drop objects that depend on the collation, and in turn all objects that depend on those objects (see <xref linkend="ddl-depend"/>). 照合順序に依存するオブジェクトを自動的に削除し、さらにそれらのオブジェクトに依存するすべてのオブジェクトも削除します(5.14参照)。

RESTRICT

Refuse to drop the collation if any objects depend on it. This is the default. 依存するオブジェクトが存在する場合、照合順序の削除を拒絶します。 これがデフォルトです。

<title>Examples</title>

To drop the collation named <literal>german</literal>: germanという名前の照合順序を削除します。

DROP COLLATION german;

互換性

<title>Compatibility</title>

The <command>DROP COLLATION</command> command conforms to the <acronym>SQL</acronym> standard, apart from the <literal>IF EXISTS</literal> option, which is a <productname>PostgreSQL</productname> extension. PostgreSQLの拡張であるIF EXISTSオプションを除き、DROP COLLATIONコマンドは標準SQLに従います。

関連項目

<title>See Also</title> ALTER COLLATION, CREATE COLLATION