If the table myTable contains 100000000 records.
And I execute DELETE FROM myTable; without begin transaction and somethings go wrong, such as server power failure.
Will it delete some of the records?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, if the DB engine conforms to ACID.
Any single write action is Atomic, whether contained in an explicit transaction or not.
A.k.a. each write action is a self contained transaction.