永洪社区

标题: 数据集写参数问题 [打印本页]

作者: 曾梦闵    时间: 2022-11-17 16:57
标题: 数据集写参数问题
获取到的这种参数如何写在sql里多选过滤呢?树状过滤又可以如何做?

作者: yhdata_lyaa    时间: 2022-11-17 17:12
https://www.yonghongtech.com/hel ... paramindataset.html
多值参数一般使用如下:

select * from coffee where 1=1 <m>and market in ?{m}</m>

select * from coffee <m>where market like ?{m}</m>
作者: 曾梦闵    时间: 2022-11-17 17:22
yhdata_lyaa 发表于 2022-11-17 17:12
https://www.yonghongtech.com/help/Z-Suite/10.0/ch/paramindataset.html
多值参数一般使用如下:

这个参数值有格式要求吗?
作者: yhdata_lyaa    时间: 2022-11-17 17:35
曾梦闵 发表于 2022-11-17 17:22
这个参数值有格式要求吗?

参数值是数组形式的
作者: 曾梦闵    时间: 2022-11-17 17:45
好的,谢谢。
作者: yhdata_lyaa    时间: 2022-11-17 17:48
曾梦闵 发表于 2022-11-17 17:45
好的,谢谢。






欢迎光临 永洪社区 (http://club.yonghongtech.com/) Powered by Discuz! X3.4