►►─ full-select statement ───────────────────────────────────────────────────► ►─┬──────────────────────────────────────────────────────────┬───────────────► ├─┬───────────────────┬─┬────────────────────────────┬─────┤ │ └─ ORDER BY clause ─┘ └─ optimize-read-fetch-list ─┘ │ │ ┌─ , ──────┐ │ └─ FOR UPDATE OF ─▼─ c-name ─┴─────────────────────────────┘ ►──┬─────────────────┬──────────────────────────────────────────────────────►◄ └─ QUERYNO nnnnn ─┘
Expansion of optimize-read-fetch-list
├───┬──────────────────────────────────────────┬────────────────────────────┤ ├─ OPTIMIZE FOR n ROWS ────────────────────┤ ├─ FOR ─┬─ READ ──┬ ─ ONLY ────────────────┤ │ └─ FETCH ─┘ │ └─ FETCH FIRST ─┬─────┬─┬─ ROW ──┬ ─ ONLY ─┘ └─ n ─┘ └─ ROWS ─┘
Only one use of each optimize-read-fetch-list clause is allowed.
The following are CA Datacom/DB extensions:
For the syntax of the full-select statement, see the CA Datacom/DB SQL User Guide.
ORDER BY Clause
┌─ , ───────────────────────────┐ ►►─ ORDER BY ─▼─┬─ column-name ─┬─┬─────────┬─┴───────────────────────────────►◄ └─ integer ─────┘ ├─ ASC ◄ ─┤ └─ DESC ──┘
Copyright © 2014 CA.
All rights reserved.
|
|