select * from Tablea where area in(replace('粤西&广西','&',','))
SELECT * FROM 雇员
where 姓名 in ('${replace("王伟&李芳","&","','")}')
------------------------------------------------------
原理一样,按照 in ('aa','bb')的格式处理
这个你不是写的已处理了吗?
select * from Tablea where area in('${replace("粤西&广西","&","','")}')
${if(len(target) == 0,"","and target in ('" + replace(target,",","','") + "')")}
高级语法 编辑器