使用SQL()函数查询出来的数据作为where条件 in()里面的值时,如何处理字符
SQL()结果被解析成成了一串整体字符串
SELECT * FROM demo WHERE CODE IN('${sql("FAN","SELECT CODE FROM FRDemo",1)}')
上面这样写解析出来就变成
SELECT * FROM demo WHERE CODE IN('001,002,003')
SELECT * FROM demo WHERE CODE IN('${replace(sql("FAN","SELECT CODE FROM FRDemo",1),",","','")}')