commit after select

前端 未结 2 1133
忘了有多久
忘了有多久 2021-02-19 14:34

I have read the explanations when a commit may be neccessary after a select statement for DB2 and MySQL:

Is a commit needed on a select query i

2条回答
  •  梦如初夏
    2021-02-19 15:24

    If you did a SELECT ... FOR UPDATE; you would need a COMMIT or ROLLBACK to release the records held for update. Otherwise, I can't think of any reason to do this.

提交回复
热议问题