How to undo a SQL Server UPDATE query?

前端 未结 5 1752
旧巷少年郎
旧巷少年郎 2021-02-03 21:22

In SQL Server Management Studio, I did the query below.
Unfortunately, I forgot to uncomment the WHERE clause.
1647 rows were updated instead of 4.

5条回答
  •  悲&欢浪女
    2021-02-03 21:59

    A non-committed transaction can be reverted by issuing the command ROLLBACK

    But if you are running in auto-commit mode there is nothing you can do....

提交回复
热议问题