select *
from emp
where deptno in
<trim prefix="(" suffix=")">
10,20
</trim>
-- 출력 쿼리
select *
from emp
where deptno in (10,20)
select *
from emp
where
<trim prefixOverrids="and">
and deptno = 10
</trim>
-- 출력 쿼리
select *
from emp
where deptno = 10
select *
from emp
where
<trim suffixOverrids="and">
deptno = 10 and
</trim>
-- 출력쿼리
select *
from emp
where deptno = 10