CREATE QUERY statement
- Last Updated: October 18, 2024
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Creates a dynamic query.
Syntax
|
- handle
- A variable of type HANDLE that represents the handle of the query object.
- IN WIDGET-POOL widget-pool-name
- An expression of type CHARACTER that evaluates, at run time,
to the name of the widget pool that contains the dynamic query.Note: Widget pool names are not case-sensitive.
Example
The following example creates a dynamic query with a static buffer and a dynamic predicate (WHERE clause) which is resolved at run time:
r-crtqry.p
|
Note
- CREATE-QUERY must be followed by the QUERY-PREPARE( ) and QUERY-OPEN() methods before the query can be run.
See also
CREATE BUFFER statement, DEFINE QUERY statement, QUERY-OPEN( ) method, QUERY-PREPARE( ) method