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