这样硬生生拼接上,in不到数据
sql数据集中这样写
where 1=1
and my_code in ('${replace(编码,";","','")}')
你直接这样测试就可以的
and my_code in ('${replace("a1116-133-14;B334-15-333",";","','")}')
,改成;啊
select * from a where zd in (REPLACE("ddsd;sdds",";","','"))
REPLACE之后,左右不用加单引号,在SQL中加