Features Supported In Mode_Special_2 - HP Neoview SQL Reference Manual

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

Features Supported in Mode_Special_2

NOT CASESPECIFIC
By default, all columns and literals are set to NOT CASESPECIFIC. If you are using this
special mode, you must create and access tables in the same mode. Otherwise, you could
encounter data corruption or runtime errors.
Input Date Formats
The FORMAT clause supports these formats for a DATE literal:
YYYY-MM-DD
MM/DD/YYYY
YY/MM/DD
YYYY/MM/DD
YYYYMMDD
DD.MM.YYYY
DD-MM-YYYY
Specify the date format in a DATE literal using this syntax:
'string' (DATE, FORMAT 'date-format')
If you are using this special mode, the format of 'string' must match the 'date-format'.
But if you are not using this special mode, the format of 'string' must be one of the
standard DATE formats (EUROPEAN, USA, or DEFAULT).
For example:
"INSERT INTO table (date_column) VALUES ( '20090217' (date, FORMAT 'YYYYMMDD') )"
"SELECT '2006/07/17' (Date, FORMAT 'YYYY/MM/DD') from (values (1)) as t"
String Truncation
No error is returned if truncation occurred in an INSERT or UPDATE statement.
Rounding of Arithmetic and Conversion Operators
The "HalfMagEven" semantics are supported. This mode rounds up or down based on the
number of digits being rounded and on whether the digit is odd or even. The "HalfMagEven"
equivalent is:
Roundup if right digit > 5
Roundeven if right digit =5
Example 1
select cast(12.3450 as numeric(4,2)) from (values(1))t;
(EXPR)
-------
12.34
Example 2
12.3450 rounded to scale 2 = 12.34
12.3350 rounded to scale 2 = 12.34
12.3451 rounded to scale 2 = 12.35
12.3360 rounded to scale 2 = 12.34
12.3330 rounded to scale 2 = 12.33
NOTE:
rounding, statistician's round, Dutch rounding, or bankers' rounding.
Precision and Scale of Arithmetic Operations
The maximum precision is limited to 18. If an arithmetic computation exceeds this precision,
Neoview SQL returns an overflow error. The scale of the result is computed using the
semantics of your previous DBMS.
532
Special Neoview Features—Enabled Upon Request
The "HalfMagEven" mode is also known as unbiased rounding, convergent

Advertisement

Table of Contents
loading

Table of Contents