当使用OCCI删除永远运行

时间:2017-09-13 14:01:18

标签: sql oracle occi

同一行:

boolean
SQL Developer上的

正常运行,并且使用occi API需要永远。

我已检查过查询" SELECT * FROM tablename WHERE id = 12"匹配非空行集。

更具体地说,我使用以下语法:

DELETE(SELECT * FROM tablename WHERE id=12)

1 个答案:

答案 0 :(得分:1)

我怀疑在你的情况下,你只是得到了未提交的交易。就是这样:

session1                   session2
DELETE ...                                        table/rows is locked

                           SELECT * FROM ...      you will see all data

                           DELETE ...             and now you will wait and wait
                                                  until lock is released

COMMIT;
                           SELECT * FROM ...      now resultset is empty

我强烈建议您阅读Data Concurrency and Consistency