IBM SC41-5210-04 Server User Manual


 
Comparison values in Query for iSeries
The value you compare the field with can be:
v Another field
v A numeric constant
v A character constant (SBCS or DBCS)
v A date constant
v A time constant
v A timestamp constant
The field and the value you are comparing must be compatible data types. The following are valid
comparisons for record selection tests:
v SBCS character field with:
SBCS character
DBCS-either
DBCS-open
v DBCS-either field with:
SBCS character
DBCS-either
DBCS-open
DBCS-only
v DBCS-open field with:
SBCS character
DBCS-either
DBCS-open
DBCS-only
v DBCS-only field with:
DBCS-either
DBCS-open
DBCS-only
v DBCS-graphic field with:
DBCS-graphic
v UCS2-graphic field with:
UCS2-graphic
v Numeric field with a numeric field
v Date field with:
SBCS character
Date
DBCS-either
DBCS-open
v Time field with:
SBCS character
Time
DBCS-either
DBCS-open
v Timestamp field with:
Chapter 7. Selecting records in Query for iSeries 93