Do we need to execute Commit statement after Update in SQL Server

后端 未结 2 918
执笔经年
执笔经年 2021-02-02 10:54

I have done some update to my record through SQL Server Manager.

As Update statement is not having explicit commit, I am trying to write it manually.

Upd         


        
2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-02 11:06

    Sql server unlike oracle does not need commits unless you are using transactions.
    Immediatly after your update statement the table will be commited, don't use the commit command in this scenario.

提交回复
热议问题