connection.commit()

Function

This method commits the currently pending transaction to the database.

CAUTION: By default, Psycopg opens a transaction before executing the first command. If commit() is not called, the effect of any data operation will be lost.

Prototype

connection.commit()

Parameter

None

Return Value

None

Examples

For details, see Example: Common Operations.

Feedback
编组 3备份
    openGauss 2024-11-22 00:52:56
    cancel