如何在 ScalikeJDBC QueryDSL 中或以 ScalikeJDBC 提供的最优雅的方式编写以下代码?
begin tran
if not exists (select * from T1 with (UPDLOCK) where c1=1 and c2=2 )
insert into T1(c1,c2) values(1,2)
commit tran
如何在 ScalikeJDBC QueryDSL 中或以 ScalikeJDBC 提供的最优雅的方式编写以下代码?
begin tran
if not exists (select * from T1 with (UPDLOCK) where c1=1 and c2=2 )
insert into T1(c1,c2) values(1,2)
commit tran