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

connection.close()

Function

This method closes the database 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.

Prototype

connection.close()

Parameter

None

Return Value

None

Example

For details, see Example: Common Operations.