Update query cancelled by user

后端 未结 1 1908
余生分开走
余生分开走 2020-12-16 20:52

I have a table that has millions of rows.

Accidentally I wrote an update query over a table without where clause and clicked execute.

It started executing. A

1条回答
  •  隐瞒了意图╮
    2020-12-16 20:54

    A single update statement will not update some rows. It's all rows or none

    This is the atomicity in the ACID properties which SQL server respects well.

    Atomicity requires that each transaction is "all or nothing": if one part of the transaction fails, the entire transaction fails, and the database state is left unchanged. An atomic system must guarantee atomicity in each and every situation, including power failures, errors, and crashes.

    Then the commit is at the end of the statement, so when you cancel there's no commit

    0 讨论(0)
提交回复
热议问题