Data Types - HP Neoview SQL Reference Manual

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

Data Types

Neoview SQL data types are character, datetime, interval, or numeric (exact or approximate):
"Character String Data Types" (page 200)
"Examples of SET TABLE TIMEOUT" (page 165)
"Interval Data Types" (page 204)
"Numeric Data Types " (page 205)
Each column in a table is associated with a data type. You can use the CAST expression to convert
data to the data type that you specify. For more information, see
The following table summarizes the Neoview SQL data types:
Type
Fixed-length
character
Variable-length
character
Numeric
Floating point
number
SQL Designation
CHAR[ACTER]
NCHAR
NATIONAL CHAR[ACTER]
VARCHAR
CHAR[ACTER] VARYING
NCHAR VARYING
NATIONAL CHAR[ACTER]
VARYING
NUMERIC (1,scale) to
NUMERIC (18,scale)
SMALLINT
INTEGER
LARGEINT
FLOAT[(precision)]
REAL
Fixed-length and variable-length character data types.
DATE, TIME, and TIMESTAMP data types.
Year-month intervals (years and months) and day-time
intervals (days, hours, minutes, seconds, and fractions of
a second).
Exact and approximate numeric data types.
Description
Fixed-length character data
Fixed-length character data
in predefined national
character set
Fixed-length character data
in predefined national
character set
Variable-length ASCII
character string
Variable-length ASCII
character string
Variable-length ASCII
character string
Variable-length ASCII
character string
Binary number with optional
scale; signed or unsigned for
1 to 9 digits; sign required for
10 or more digits
Binary integer; signed or
unsigned
Binary integer; signed or
unsigned
Binary integer; signed only
Floating point number;
precision designates from 1
through 52 bits of precision
Floating point number (32
bits)
"CAST Expression" (page
Size or Range (1)
1 to 4036 characters (2)
1 to 4036 characters (3)
1 to 4036 characters (3)
1 to 4028 characters (4)
1 to 4028 characters (4)
1 to 4028 characters (5)
1 to 4028 characters (5)
1 to 18 digits; stored:
1 to 4 digits in 2 bytes
5 to 9 digits in 4 bytes
10 to 18 digits in 8 bytes
0 to 65535 unsigned, -32768 to
+32767 signed; stored in 2 bytes
0 to 4294967295 unsigned,
-2147483648 to +2147483647 signed;
stored in 4 bytes
-2**63 to +2**63-; stored in 8 bytes
+/- 2.2250738585072014e-308
through
+/-1.7976931348623157e+308; stored
in 8 bytes
+/- 1.17549435e-38 through +/
3.40282347e+38; stored in 4 bytes
Data Types
298).
197

Advertisement

Table of Contents
loading

Table of Contents