⇧
vadnica-logo
My Services About the Project Telegram O meni O meni

Releasing the Connection with closeCursor()

When working with databases, it is crucial to release resources as soon as they are no longer needed. The closeCursor() method closes the cursor of the current query, allowing a new SQL statement to be executed immediately on the same connection. This is particularly important on servers that do not allow a new query until the previous one is completely finished.

EXAMPLE
RESULT
The result will be displayed here...

Practical Application: We always use the closeCursor method when we only read a part of the data from the database or when we want to execute another query on the same connection immediately after. Check the process at home by following these steps: