How can I roll back my last delete command in MySQL?

后端 未结 10 2030
臣服心动
臣服心动 2020-12-25 09:32

I accidentally deleted some huge number of rows from a table...

How can I roll it back?

I executed the query using PuTTY.

I\'ll be grateful if any of

10条回答
  •  被撕碎了的回忆
    2020-12-25 10:15

    If you want rollback data, firstly you need to execute autocommit =0 and then execute query delete, insert, or update.

    After executing the query then execute rollback...

提交回复
热议问题