A data type is a set of values that share processing characteristics. For example, the set of all integers is a data type. Every column, local variable, parameter, and host variable has an associated data type.
The data type limits the set of values that can occur in the column, local variable, parameter, or host variable. The data type also determines the operations that can be performed on values in the column, local variable, parameter, or host variable.
You associate a data type with the following:
CA IDMS supports the following data types:
|
Category |
Data types |
|---|---|
|
Approximate numeric |
DOUBLE PRECISION FLOAT REAL |
|
Binary |
BINARY |
|
Character string |
CHARACTER VARCHAR (or CHAR VARYING) |
|
Date/time |
DATE TIME TIMESTAMP |
|
Exact numeric |
DECIMAL INTEGER LONGINT (or BIGINT) NUMERIC SMALLINT UNSIGNED DECIMAL UNSIGNED NUMERIC |
|
Graphics character string |
GRAPHIC VARGRAPHIC |
|
XML data |
XML |
The data type of a value in a column, host variable, local variable, or parameter is the data type of the column, host variable, local variable or routine parameter. For example, every value in a column with a data type of INTEGER has a data type INTEGER.
The literal used to represent a value must be appropriate for the data type of the value. For example, 983 represents a numeric value; '983' represents a character value.
Note: For more information about literals, see Literals.
The data type of a value determines:
|
Copyright © 2014 CA.
All rights reserved.
|
|