NonStop SQL/MP Reference Manual
Table Of Contents
- What’s New in This Manual
- About This Manual
- A
- Access Options
- ADD DEFINE Command
- AGGREGATE Functions
- Alias
- ALLOCATE File Attribute
- ALTER CATALOG Statement
- ALTER COLLATION Statement
- ALTER DEFINE Command
- ALTER INDEX Statement
- ALTER PROGRAM Statement
- ALTER TABLE Statement
- ALTER VIEW Statement
- APPEND Command
- APPENDCANCEL Command
- APPENDRESTART Command
- AS Clause
- AS DATE/TIME Clause
- ASCII Character Set
- AUDIT File Attribute
- AUDITCOMPRESS File Attribute
- Audited Tables
- AVG Function
- B
- C
- CANCEL Command
- CASE Expression
- CAST Function
- CATALOG Command
- Catalogs
- CATALOGS Table
- CENTER_REPORT Option
- Character Data Types
- Character Expressions
- Character Sets
- CHAR_LENGTH Function
- CLEANUP Command
- CLEARONPURGE File Attribute
- CLOSE Statement
- Clustering Keys
- COLLATE Clause
- Collation Definitions
- Column Identifier
- Columns
- COLUMNS Table
- COMMENT Statement
- Comments
- COMMENTS Table
- COMMIT Option
- COMMIT WORK Statement
- Comparison Predicate
- COMPUTE_TIMESTAMP Function
- CONCAT Clause
- Concurrency
- Constraints
- CONSTRNT Table
- CONTINUE Statement
- CONTROL EXECUTOR Directive
- CONTROL QUERY Directive
- CONTROL TABLE Directive
- CONVERT Command
- CONVERTTIMESTAMP Function
- COPY Command
- Correlation Names
- COUNT Function
- CPRLSRCE Table
- CPRULES Table
- CREATE CATALOG Statement
- CREATE COLLATION Statement
- CREATE CONSTRAINT Statement
- CREATE INDEX Statement
- CREATE SYSTEM CATALOG Command
- CREATE TABLE Statement
- CREATE VIEW Statement
- CURRENT Function
- CURRENT_TIMESTAMP Function
- Cursors
- C89
- D
- Data Dictionary
- Data Types
- DATE Data Type
- DATE_FORMAT Option
- DATE-TIME Data Types
- DATE-TIME Functions
- DATE-TIME Literals
- DATEFORMAT Function
- DATETIME Data Type
- DAYOFWEEK Function
- DCL (Data Control Language) Statements
- DCOMPRESS File Attribute
- DDL (Data Definition Language) Statements
- Deadlocks
- DECIMAL_POINT Option
- DECLARE CURSOR Statement
- DEFAULT Clause
- DEFINEs
- DELETE DEFINE Command
- DELETE Statement
- DESCRIBE INPUT Statement
- DESCRIBE Statement
- Detail Alias
- DETAIL Command
- DISPLAY STATISTICS Command
- DISPLAY USE OF Command
- DISTINCT Clause
- DML (Data Manipulation Language) Statements
- DOWNGRADE CATALOG Command
- DOWNGRADE SYSTEM CATALOG Command
- DROP Statement
- DROP SYSTEM CATALOG Command
- DSL (Data Status Language) Statements
- DSLACK File Attribute
- DUP Command
- Dynamic SQL
- E
- F
- G
- H
- I
- ICOMPRESS File Attribute
- IF/THEN/ELSE Clause
- IN Predicate
- INCLUDE SQLCA Directive
- INCLUDE SQLDA Directive
- INCLUDE SQLSA Directive
- INCLUDE STRUCTURES Directive
- Index Keys
- INDEXES Table
- Indicator Variables and Indicator Parameters
- INFO DEFINE Command
- INITIALIZE SQL Command
- INSERT Statement
- INTERVAL Data Type
- INTERVAL Literals
- INVOKE Directive and Command
- ISLACK File Attribute
- J
- K
- L
- M
- N
- O
- P
- PAGE_COUNT Option
- PAGE FOOTING Command
- PAGE_LENGTH Option
- PAGE_NUMBER Function
- PAGE TITLE Command
- Parallel Index Loading
- Parameters
- PARTITION Clause
- Partitions
- PARTNS Table
- PERUSE Command
- Plans
- POSITION Function
- Predicates
- PREPARE Statement
- Primary Keys
- Print Item
- PROGID File Attribute
- Program Invalidation
- PROGRAMS Table
- Protection View
- PURGE Command
- PURGEDATA Command
- Q
- R
- RECLENGTH File Attribute
- RELEASE Statement
- REPORT FOOTING Command
- REPORT Option
- REPORT TITLE Command
- Report Writer
- Reserved Words
- RESET DEFINE Command
- RESET LAYOUT Command
- RESET PARAM Command
- RESET PREPARED Command
- RESET REPORT Command
- RESET SESSION Command
- RESET STYLE Command
- RESETBROKEN File Attribute
- RIGHT_MARGIN Option
- ROLLBACK WORK Statement
- ROWCOUNT Option
- S
- Sample Database
- SAVE Command
- Search Conditions
- SECURE Command
- SECURE File Attribute
- Security
- SELECT Statement
- SERIALWRITES File Attribute
- SET DEFINE Command
- SET DEFMODE Command
- SET LAYOUT Command
- SET PARAM Command
- SET SESSION Command
- SET STYLE Command
- SETSCALE Function
- Shorthand View
- SHOW CONTROL Command
- SHOW DEFINE Command
- SHOW DEFMODE Command
- SHOW LAYOUT Command
- SHOW PARAM Command
- SHOW PREPARED Command
- SHOW REPORT Command
- SHOW SESSION Command
- SHOW STYLE Command
- Similarity Checks
- SLACK File Attribute
- SPACE Option
- SQL Directive
- SQL Identifiers
- SQLCI
- SQLCI Commands
- SQLCODE
- SQLCOMP Command
- Standards Conformance
- Statements
- Static SQL
- Statistics
- Storage Management Foundation (SMF)
- String Functions
- String Literals
- Subqueries
- SUBSTRING Function
- SUBTOTAL Command
- SUBTOTAL_LABEL Option
- SUM Function
- Super ID
- Syskeys
- System Catalog
- SYSTEM Command
- System DEFINEs
- T
- U
- V
- W
- Z
- ! COMMAND
- =_AUDSERV_XSWAP_node DEFINE
- =_DEFAULTS DEFINE
- =_SORT_DEFAULTS DEFINE
- =_SQL_CAT_HEAP_LIMIT DEFINE
- =_SQL_CMP_DOUBLE_SBB_OFF DEFINE
- =_SQL_CMP_DOUBLE_SBB_ON DEFINE
- =_SQL_CMP_EQ_LIMIT DEFINE
- =_SQL_CMP_EVENT DEFINE
- =_SQL_CMP_EVENT_NO0 DEFINE
- =_SQL_CMP_NO_KS_MJOIN DEFINE
- =_SQL_cmp_node DEFINE
- =_SQL_EXE_DOUBLE_SHUTOFF DEFINE
- =_SQL_EXE_ESPS_CK_CMON DEFINE
- =_SQL_EXE_USE_SWAPVOL DEFINE
- =_SQL_MSG_node DEFINE
- =_SQL_RECGEN_node DEFINE
- =_SQL_TM_node_vol DEFINE
- Index

NonStop SQL/MP Reference Manual—142115
C-14
Considerations—Character Expressions
that was defined with a COLLATE FRENCH clause, the collation FRENCH is
implicitly associated with the expression even though no COLLATE clause appears
in the expression.
A character expression is explicitly associated with a collation if the expression
itself includes the COLLATE clause. An explicit association with a collation
overrides an implicit association with a collation in the same expression.
COLLATE CHARACTER SET explicitly associates the binary ordering of
character-item values with the expression, overriding any implicit association
with a collation.
If a nested character expression includes more than one COLLATE clause, the
collation explicitly specified at the highest level of the expression is the collation
associated with the expression. For example, the following expression is associated
with the collation SPANISH, even if B is a column associated with collation
FRENCH:
MAX(B COLLATE FRENCH) COLLATE SPANISH
Collation FRENCH is used to compute the MAX value. The result has collation
SPANISH.
•
Determining the collating sequence for concatenated strings
The collating sequence of a concatenated string is determined by the rules specified
for a comparison operation. For more information, see LC_COLLATE # This case
insensitive collating sequence sorts most of # the accented forms of a, e, i, o, and u
equal to the # unaccented form. # Upshift for a, e, i, o, u -grave -acute -circumflex #
is A, E, I, O, U. Upshift for e-umlaut is E. Upshift # for i-umlaut is I, and upshift for
y-acute is Y. # The actual collating sequence starts here: order_start forward \d032
\d032 # 32 is the space character \d160 \d032 # NBSP (non breaking space) <0>
<0> ... ... <9> <9> <A> <A> ... ... <Z> <Z> <a> <A> ... ... <z> <Z> \d192 <A> #
192 - 195 and 224 - 227 ... <A> # are forms of "A" and "a" \d195 <A> \d224 <A> ...
<A> \d227 <A> \d199 <C> # 199 = C-cedilla \d231 <C> # 231 = c-cedilla \d208
<D> # 208 = Eth \d240 <D> # 240 = eth \d200 <E> # 200 - 203 and 232 - 235 ...
<E> # are forms of "E" and "e" \d203 <E> \d232 <E> ... <E> \d235 <E> \d204 <I>
# 204 - 207 and 236 - 239 ... <I> # are forms of "I" and "i" \d207 <I> \d236 <I> ...
<I> \d239 <I> \d209 <N> # 209 = N-tilde \d241 <N> # 241 = n-tilde \d210 <O> #
210 - 213 and 242 - 245 ... <O> # are forms of "O" and "o" \d213 <O> \d242 <O> ...
<O> \d245 <O> \d217 <U> # 217 - 219 and 249 - 251 ... <U> # are forms of "U"
and "u" \d219 <U> \d249 <U> ... <U> \d251 <U> \d221 <Y> # 221 = Y-acute \d253
<Y> # 253 = y-acute \d255 <Y> # 255 = y-acute \d198 \d198 # 198 = AE \d230
\d230 # 230 = ae \d216 \d216 # 216 = O-slash \d248 \d248 # 248 = o-slash \d197
\d197 # 197 = A-ring \d229 \d197 # 229 - a-ring \d222 \d222 # 222 = Thorn \d254
\d222 # 254 = thorn \d033 <!> # 33 - 47 are symbols ... ... # encoded in sequences
\d047 </> \d173 <-> # 173 = SHY \d058 <:> # 58 - 63 are symbols ... ... # encoded
in sequences \d063 <?> \d064 <@> \d091 <[> # 91 - 96 are symbols ... ... # encoded
in sequences \d096 <•> \d123 <{> # 123 - 126 are symbols ... ... # encoded in
sequences \d126 <~> \d127 IGNORE \d196 "<a><e>" # A-umlaut sorts as string of
a and e \d228 "<a><e>" # a-umlaut sorts as string of a and e \d214 "<o><e>" # O-
umlaut sorts as string of o and e \d246 "<o><e>" # o-umlaut sorts as string of o and
e \d220v "<u><e>" # U-umlaut sorts as string of u and e \d252 "<u><e>" # u-umlaut