Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我无法将 Oracle 语法转换为 H2 语法:
例如(甲骨文):
LOCK TABLE CAR_CHIP_ID_LOCK IN EXCLUSIVE MODE
在 H2 中,它会导致(语法错误)
如何将oracle语法更改为h2?我试过 Lock_mode 但它不起作用,默认情况下 MVCC 为 true v1.4+
在 oracle 和 h2 中似乎都有效的是
select * from CAR_CHIP_ID_LOCK for update;
另请参阅如何在 JPA 实体管理器中锁定整个实体(表)