SQL Server 2008: SELECT FOR UPDATE

前端 未结 4 1225
时光说笑
时光说笑 2021-01-13 23:28

I have seen a question on here about this however it was old so I will ask again in case a solution now exists.

My issue is this. I have a database table which I wi

4条回答
  •  无人及你
    2021-01-14 00:25

    Locking mechanism of SQL Server and Oracle completely different (even opposite in behavior). If you include any transaction level control elements in your code it won't be "database agnostic", but no database code of any reasonable complexity ever "database agnostic" anyway. In the case you have to use only "plain SQL" stay within SQL92 specification and control transactions on application side and without use of "link-to-SQL", but it will limit your ability to write effective (database-specific) solution.

提交回复
热议问题