开发者

Does it delete partially if execute a delete statement without transaction?

开发者 https://www.devze.com 2023-03-16 00:50 出处:网络
If the table myTable contains 100000000 records. And I execute DELETE FROM myTable; without begin transaction and somethings go wrong, su开发者_开发知识库ch as server power failure.

If the table myTable contains 100000000 records.

And I execute DELETE FROM myTable; without begin transaction and somethings go wrong, su开发者_开发知识库ch as server power failure.

Will it delete some of the records?


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.


I would say no it will not delete partial, but without knowing the database server you use it's hard to tell.

0

精彩评论

暂无评论...
验证码 换一张
取 消