Mimer SQL Reference Manual TOC PREV NEXT INDEX

Mimer Developer Site

www.mimer.com/developer


DOMAINS


The DOMAINS system view describes each domain to which the current ident, or PUBLIC, has USAGE privilege.

.
Column name
Data type
Description
DOMAIN_CATALOG
VARCHAR(128)
The name of the catalog containing the domain.
DOMAIN_SCHEMA
VARCHAR(128)
The name of the schema containing the domain.
DOMAIN_NAME
VARCHAR(128)
Name of the domain.
DATA_TYPE
VARCHAR(30)
Identifies the data type of the domain.
Can be one of the following:
BIGINT
BINARY
BINARY VARYING
CHARACTER
CHARACTER VARYING
DATE
DECIMAL
DOUBLE PRECISION
FLOAT
INTEGER
INTERVAL
NUMERIC
REAL
SMALLINT
TIME
TIMESTAMP.
CHARACTER
_MAXIMUM
_LENGTH
INTEGER
For a character data type, this shows the maximum length in characters. For all other data types it is the NULL value.
CHARACTER
_OCTET_LENGTH
INTEGER
For a character data type, this shows the maximum length in octets. For all other data types it is the NULL value. (For single octet character sets, this is the same as CHARACTER_MAX_LENGTH).
CHARACTER_SET
_CATALOG
VARCHAR(128)
The name of the catalog containing the character set used by the domain.
CHARACTER_SET
_SCHEMA
VARCHAR(128)
The name of the schema containing the character set used by the domain.
CHARACTER_SET
_NAME
VARCHAR(128)
The name of the character set used by the domain.
COLLATION
_CATALOG
VARCHAR(128)
The name of the catalog containing the default collation for the character set.
COLLATION
_SCHEMA
VARCHAR(128)
The name of the schema containing the default collation for the character set.
COLLATION_NAME
VARCHAR(128)
The name of the default collation for the character set.
NUMERIC
_PRECISION
INTEGER
For numeric data types, this shows the total number of significant digits allowed in the column. For all other data types it is the NULL value.
NUMERIC
_PRECISION_RADIX
INTEGER
This shows whether the NUMERIC_PRECISION is given in a binary or decimal radix. The numeric radix is always decimal in Mimer SQL, therefore the value 10 is always shown for numeric data types. For all other data types it is the NULL value.
NUMERIC_SCALE
INTEGER
This defines the total number of significant digits to the right of the decimal point. For BIGINT, INTEGER and SMALLINT, this is 0. For BINARY, BINARY VARYING, CHARACTER, CHARACTER VARYING, DATETIME, FLOAT, INTERVAL, REAL and DOUBLE PRECISION data types, it is the NULL value.
DATETIME
_PRECISION
INTEGER
For DATE, TIME, TIMESTAMP and interval data types, this column contains the number of digits of precision for the fractional seconds component. For other data types it is the NULL value.
INTERVAL_TYPE
VARCHAR(30)
For interval data types, this is a character string specifying the interval qualifier for the named interval data type (see Named Interval Data Types). For other data types it is the NULL value.
INTERVAL
_PRECISION
INTEGER
For interval data types, this is the number of significant digits for the interval leading precision (see Named Interval Data Types). For other data types it is the NULL value.
DOMAIN_DEFAULT
VARCHAR(2000)
This shows the default value for the domain.
If the default value is a character string, the value shown is the string enclosed in single quotes.
If the default value is a numeric literal, the value is shown in its original character representation without enclosing quotes.
If the default value is a DATE, TIME or TIMESTAMP, the value shown is the appropriate keyword (e.g. DATE) followed by the literal representation of the value enclosed in single quotes (see DATE, TIME and TIMESTAMP Literals for a description of DATE, TIME and TIMESTAMP literals).
If the default value is a pseudo-literal, the value shown is the appropriate keyword (e.g. CURRENT_DATE) without enclosing quotes.
If the default value is the NULL value, the value shown is the keyword NULL without enclosing quotes.
If the default value cannot be represented without truncation, then TRUNCATED is shown without enclosing quotes.
If no default value was specified then its value is the NULL value.
The value of DOMAIN_DEFAULT is syntactically suitable for use in specifying default-value in a CREATE TABLE or ALTER TABLE statement (except when TRUNCATED is shown).



Upright Database Technology AB
Voice: +46 18 780 92 00
Fax: +46 18 780 92 40
dbtechnology@upright.se
Mimer SQL Reference Manual TOC PREV NEXT INDEX