HP Neoview SQL Reference Manual page 198

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

Type
Decimal number
Date-Time
198
SQL Language Elements
SQL Designation
DOUBLE PRECISION
DECIMAL (1,scale) to
DECIMAL (18,scale)
DATE
TIME
TIME
TIMESTAMP
TIMESTAMP
Description
Floating-point numbers (64
bits) with 1 through 52 bits
of precision (52 bits of binary
precision and 11 bits of
exponent)
Decimal number with
optional scale; stored as
ASCII characters; signed or
unsigned for 1 to 9 digits;
signed required for 10 or
more digits
Point in time, using the
Gregorian calendar and a 24
hour clock system. The five
supported designations are
listed below.
Date
Time of day, 24 hour clock,
no time precision
Time of day, 24 hour clock,
with time precision
Point in time, no time
precision
Point in time, with time
precision
Size or Range (1)
+/- 2.2250738585072014e-308
through
+/-1.7976931348623157e+308; stored
in 8 byte
1 to 18 digits. Byte length equals
the number of digits. Sign is stored
as the first bit of the leftmost byte.
YEAR 0001-9999
MONTH 1-12
DAY 1-31
DAY constrained by MONTH and
YEAR
HOUR 0-23
MINUTE 0-59
SECOND 0-59
FRACTION(n) 0-999999
in which n is the number of
significant digits, from 1 to 6
(default is 6; minimum is 1;
maximum is 6). Actual database
storage is incremental, as follows:
YEAR in 2 bytes
MONTH in 1 byte
DAY in 1 byte
HOUR in 1 byte
MINUTE in 1 byte
SECOND in 1 byte
FRACTION in 4 bytes
Format as YYYY-MM-DD; actual
database storage size is 4 bytes
Format as HH:MM:SS; actual
database storage size is 3 bytes
Format as HH:MM:SS.FFFFFF;
actual database storage size is 7
bytes
Format as YYYY-MM-DD
HH:MM:SS; actual database
storage size is 7 bytes
Format as YYYY-MM-DD
HH:MM:SS.FFFFFF; actual
database storage size is 11 bytes

Advertisement

Table of Contents
loading

Table of Contents