Reputation: 681
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?
Upvotes: 3
Views: 431
Reputation: 432471
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.
Upvotes: 7
Reputation: 1105
I would say no it will not delete partial, but without knowing the database server you use it's hard to tell.
Upvotes: 3