NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
S-80
Examples—String Literals
You should not mix single-byte and double-byte characters in the same string, but
NonStop SQL/MP does not prevent you from doing so.
Data validation
NonStop SQL/MP does not perform data validation to ensure that characters in a
string literal belong to the character set associated with the string literal. For
example, the following string literal is valid:
_KANJI"abcdef"
Examples—String Literals
The following string literals do not have an associated character set:
"This is an ordinary literal."
"This literal contains "" a quotation mark."
"This SQLCI literal is" &
" in three parts, " &
"specified over three lines"
'1234.56'
_UNKNOWN"abc^&*"
The following string literals have associated character sets. The first is associated
with a single-byte character set, and the second and third are associated with double-
byte character sets. The third is associated with either KANJI or KSC5601,
depending on the default national character data type in effect on the node.
_ISO88594'SMITH, JOHN'
_KANJI"c1c2c3c4c5c6"
N"c1c2c3c4c5c6c7c8c9"