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

37.2. データ型 #

<title>Data Types</title>

The columns of the information schema views use special data types that are defined in the information schema. These are defined as simple domains over ordinary built-in types. You should not use these types for work outside the information schema, but your applications must be prepared for them if they select from the information schema. 情報スキーマのビューの列では、情報スキーマ内で定義された特殊なデータ型を使用します。 これらは、通常の組み込み型の上位にあたる単純なドメインとして定義されます。 情報スキーマ外部で操作する時にはこれらの型を使用してはなりません。 しかし、情報スキーマを検索するようなアプリケーションではこれらの型への用意をしておかなければなりません。

These types are: これらの型を以下に記します。

cardinal_number

A nonnegative integer. 非負の整数です。

character_data

A character string (without specific maximum length). (最大文字長の指定がない)文字列です。

sql_identifier

A character string. This type is used for SQL identifiers, the type <type>character_data</type> is used for any other kind of text data. 文字列です。 この型はSQL識別子用に使用され、character_dataはその他の任意のテキストデータに使用されます。

time_stamp

A domain over the type <type>timestamp with time zone</type> timestamp with time zone型の上位ドメインです。

yes_or_no

A character string domain that contains either <literal>YES</literal> or <literal>NO</literal>. This is used to represent Boolean (true/false) data in the information schema. (The information schema was invented before the type <type>boolean</type> was added to the SQL standard, so this convention is necessary to keep the information schema backward compatible.) YESNOのいずれかを持つ文字列ドメインです。 情報スキーマ内で論理(真/偽)データを表すために使用されます。 (情報スキーマはboolean型が標準SQLに追加される前に考案されました。 このため情報スキーマの後方互換性を維持するために、この記法が必要です。)

Every column in the information schema has one of these five types. 情報スキーマ内の列はすべてこれら5つの型のいずれかを取ります。