Updated on 2024-05-07 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

Examples

For details, see Examples: Common Operations.