Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql undo delete

start transaction;

savepoint sp1;

delete from customer where ID=1;

savepoint sp2;

delete from customer where ID=2;

rollback to sp2;

rollback to sp1;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysql #undo #delete
ADD COMMENT
Topic
Name
6+3 =