0
以下是我的HQL查询。HQL查询的问题
delete from Table t
where
(t.column1=:value1 and t.column2=:value2)
or (t.column3=:value3 and t.column4=:value4)
当我运行此查询时,它会生成以下SQL,这是错误的。
delete from Table t
where
t.column1=?
and t.column2=?
or t.column3=?
and t.column4=?
在生成的SQL中删除了括号,这给出了错误的结果。
请帮忙。
Nopes。它不工作。 :( – ashishjmeshram
@Ashish通过上述链接可能会帮助 – Zohaib
@Ashish我在sql中测试了查询,qith括号并且没有括号,它给出了相同的结果,上面的链接中的解释是完美的。 – Zohaib