]> begriffs open source - ai-pg/blob - full-docs/txt/infoschema-datatypes.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / infoschema-datatypes.txt
1
2 35.2. Data Types #
3
4    The columns of the information schema views use special data types that
5    are defined in the information schema. These are defined as simple
6    domains over ordinary built-in types. You should not use these types
7    for work outside the information schema, but your applications must be
8    prepared for them if they select from the information schema.
9
10    These types are:
11
12    cardinal_number
13           A nonnegative integer.
14
15    character_data
16           A character string (without specific maximum length).
17
18    sql_identifier
19           A character string. This type is used for SQL identifiers, the
20           type character_data is used for any other kind of text data.
21
22    time_stamp
23           A domain over the type timestamp with time zone
24
25    yes_or_no
26           A character string domain that contains either YES or NO. This
27           is used to represent Boolean (true/false) data in the
28           information schema. (The information schema was invented before
29           the type boolean was added to the SQL standard, so this
30           convention is necessary to keep the information schema backward
31           compatible.)
32
33    Every column in the information schema has one of these five types.