If I kill a delete query in mysql, will the rows all be saved? -


suppose i'm halfway through running import, , instead of running

select count(*) table_being_imported 

i hit ctrl+r, type table_being_im , hit return, find horror i've issued

delete table_being_imported 

oops. hit ctrl+c , told:

ctrl-c -- sending "kill query 627" server ... ctrl-c -- query aborted. error 1317 (70100): query execution interrupted 

would have deleted of rows? hypothetically, of course...

hypothetically,... some of rows gone.

during update or delete operations, kill flag checked after each block read , after each updated or deleted row. if kill flag set, statement aborted. note if not using transactions, changes not rolled back.

not time mention it, why transactional queries best when dealing business-critical data.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -