文本控件填入多个值,分号隔开,SQL这么写为啥不对啊?

where1=1  and name in ("'"+replace('${oper}',";","','")+"'")

FineReport 帆软用户LLL 发布于 昨天 15:12 (编辑于 昨天 15:13
1min目标场景问卷 立即参与
回答问题
悬赏:3 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共2回答
最佳回答
1
snrtuemcLv8专家互助
发布于昨天 15:14(编辑于 昨天 15:15

where 1=1  and name in ('${replace(oper,";","','")}')

或者

where 1=1

${if(len(oper)=0,""," and name in ('"+replace(oper,";","','")+"')")}

最佳回答
1
Z4u3z1Lv6专家互助
发布于昨天 15:15

where1=1  ${if(len(oper)==0,""," and name in ('"+replace(oper,";","','")+"')")}

  • 2关注人数
  • 26浏览人数
  • 最后回答于:昨天 15:15
    请选择关闭问题的原因
    确定 取消
    返回顶部