I have to build a IN condition using MyBatis where have to pass a list of PARENT_VALUES to be obtained based on the foreach loop below....
PARENT_VALUES
I tried but u
Your Select statement would like something like this
SELECT P.NAME, P.AGE FROM PERSON_DETAILS P WHERE SOMECOLUMN is NULL AND DATA IN (SELECT DATA FROM PARENT_TABLE WHERE PARENT_VALUE IN ${item} ) ORDER BY P.NAME FETCH FIRST 10 ROW ONLY