How can I implement commit/rollback for MySQL in PHP?

前端 未结 4 1642
南方客
南方客 2020-12-18 03:32

Well basically I have this script that takes a long time to execute and occasionally times out and leaves semi-complete data floating around my database. (Yes I know in a pe

4条回答
  •  我在风中等你
    2020-12-18 03:42

    You need to use InnoDB based tables for transactions then use any library like PDO or MySQLi that supports them.

提交回复
热议问题