直连数据库,where条件后面用的IN('$(参数)'),我的参数该如何拼接
我查询到BI的拼法是 00x301A000930650009x01x3000x00001x1','00x301A000930650009x01x3000x00001x2,但是REPORT里面不行
IN('${参数}')
是花括号
---------------------
把 ',’改成 _ (00x301A000930650009x01x3000x00001x1_00x301A000930650009x01x3000x00001x2)
SQL 改成 in ('${replace(参数,"_","','")}')
最简便,这个写法
in ('${replace(参数,",","','")}')