Reputation: 1658
By mistake, I executed MySQL command in command line without where condition.
update actor set first_name = 'Ved' , last_name ='Prakash';
it updated my all 500 rows with same first_name and last_name. any possibility to restore or rollback. I don't have the backup.
Upvotes: 1
Views: 3502
Reputation: 70
when you start to writing sql command in MySQL.
Remember autocommit =0
then you use rollback
otherwise not possible.
Hope this help you for next MySQL command
Upvotes: 2