Close a query
- Last Updated: April 1, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Use this statement to close a query that is no longer needed:
|
An OPEN QUERY statement automatically closes
a query if it was previously open. For this reason, it is not essential to execute a CLOSE QUERY statement just before reopening a query. However, you
should explicitly close a query when you are done with it and you are not immediately
reopening it. This frees the system resources used by the query. After you close the query you
cannot reference it again (with a GET statement, for
instance). However, if there are records still in the buffer or buffers used by the query,
they are still available after the query is closed unless your application has specifically
released them.