Referencing sequences within a WHERE clause
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
You cannot invoke sequence functions from within a WHERE clause.
This generates a compiler error, because sequence expressions do
not participate in the index resolution and optimization phase of
the Compiler.
If you want to use a sequence value within a WHERE clause,
set a variable or field to the sequence value, and reference the
variable or field in your WHERE clause. See the
sections that describe each sequence function for examples.