火鸟Firebird数据库 Error Message:

jrwjrw 2011-03-15 10:39:49

UPDATA语句后 产生的


Error Message:
----------------------------------------
Unsuccessful execution caused by system error that does not preclude successful execution of subsequent statements.
lock conflict on no wait transaction.
deadlock.
update conflicts with concurrent update.
...全文
177 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
WWWWA 2011-03-15
  • 打赏
  • 举报
回复
This happens when your transaction tries to update or delete a record that some other transaction updated or deleted. This is a normal event in database world and your application should be ready to deal with it.

This 'problem' is quite easy to reproduce, so you can play with it. Just open two isql sessions, run the same update query and then try to commit both transactions.

Please note that this problem is not always easy to debug, as there might be stored procedures or triggers involved that run the update on some table at certain time. If you find such hard to catch problem, adding some logging of queries via external tables (which are outside transaction control) might help.

If you designed your system in such way that deadlocks happen ofter, consider using NO WAIT transactions, so that you get the error instantly instead of waiting for deadlock timeout.

If you perceive deadlock as a problem you cannot solve, look into selecting a different isolation modes for transactions in your application.

调整隔离模式试试
jrwjrw 2011-03-15
  • 打赏
  • 举报
回复
UPDATE TB_CAREPARA SET CARECIRCLE = '75'
WWWWA 2011-03-15
  • 打赏
  • 举报
回复
语句是什么

2,209

社区成员

发帖
与我相关
我的任务
社区描述
其他数据库开发 其他数据库
社区管理员
  • 其他数据库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧