Closing a query
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- 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 isn't 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.