OPEN QUERY query FOR PRESELECT EACH record-phrase, EACH FIRST LAST record-phrasequery-tuning-phraseBREAKBY expression DESCENDINGCOLLATE ( string , strength , collation ) DESCENDINGINDEXED-REPOSITIONMAX-ROWS num-resultsrecord-phraseFOR PRESELECT EACHThe following is the syntax for record-phrase:
record
LEFT OF tableWHERE expressionUSING FRAME frame fieldAND FRAME frame fieldUSE-INDEX indexSHARE-LOCK EXCLUSIVE-LOCK NO-LOCKNO-PREFETCHIf the query was previously defined, the buffers referenced by the record-phrase must be the same buffers referenced in the DEFINE QUERY statement and in the same order. For more information, see the Record phrase reference entry.record-phraseEACH FIRST LASTSpecifies subsequent buffers in the query. Each subsequent buffer specifies a join with the previous buffer(s) according to the record-phrase. If the query was previously defined, the buffers referenced by the record-phrase must be the same buffers referenced in the DEFINE QUERY statement and in the same order. For more information on specifying joins in Record phrases, see the Record phrase reference entry.Allows programmatic control over the execution of a DataServer query. Following is the syntax for the query-tuning-phrase:
QUERY-TUNING(LOOKAHEAD CACHE-SIZE integer NO-LOOKAHEADDEBUG SQL EXTENDED NO-DEBUGSEPARATE-CONNECTION NO-SEPARATE-CONNECTIONJOIN-BY-SQLDB NO-JOIN-BY-SQLDBBIND-WHERE NO-BIND-WHEREINDEX-HINT NO-INDEX-HINT)For more information, see your OpenEdge DataServer Guides (OpenEdge Data Management: DataServer for Microsoft SQL Server, OpenEdge Data Management: DataServer for ODBC, and OpenEdge Data Management: DataServer for Oracle).
OPEN QUERY q-order FOR EACH customer BREAK BY customer.state NO-LOCK.To test whether a break group has changed, you can use the FIRST-OF( ) method and LAST-OF( ) method of the query object handle.BY expression DESCENDING
RAW — Generates a collation value for the string based on its binary value.
CASE-SENSITIVE — Generates a case-sensitive collation value for the string based on a particular collation. If you specify this strength with an ICU collation, the AVM applies the ICU TERTIARY strength.
CASE-INSENSITIVE — Generates a case-insensitive collation value for the string based on a particular collation. If you specify this strength with an ICU collation, the AVM applies the ICU SECONDARY strength.
CAPS — Generates a collation value for the string based on its binary value after converting any lowercase letters in the string to uppercase letters, based on the settings of the Internal Code Page (-cpinternal) and Case Table (-cpcase) startup parameters.
PRIMARY — Generates a collation value for the base characters in the string.
SECONDARY — Generates a collation value for the base characters and any diacritical marks in the string.
TERTIARY — Generates a case-sensitive collation value for the base characters and any diacritical marks in the string.
QUATERNARY — Generates a case-sensitive collation value for the base characters and any diacritical marks in the string, and distinguishes words with and without punctuation. ICU uses this strength to distinguish between Hiragana and Katakana when applied with the ICU-JA (Japanese) collation. Otherwise, it is the same as TERTIARY.A CHARACTER expression that evaluates to the name of an ABL collation table or ICU collation. If collation does not appear, COLLATE uses the collation table of the client.
strength does not evaluate to a valid value.
collation does not evaluate to a collation table residing in the convmap.cp file.
collation evaluates to a collation table that is not defined for the code page corresponding to the -cpinternal startup parameter.MAX-ROWS num-results
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |