Updated on 2023-10-23 GMT+08:00

Closing the Connection

After you complete required data operations in a database, close the database connection. Call the close method such as connection.close() to close the connection.

This method closes the database connection and does not automatically call commit(). If you just close the database connection without calling commit() first, changes will be lost.