场景:finereport 做了一个表穿透,页面的一个参数带入下一个表,下面sql是穿透表的查询
select ccuscode,ccusname from customer where ccuscode in ('00550,00264,18020018')
或者是传参时怎么设置?括号里面的字符串要怎么拆?
in里面的参数继续用select *from 表就可以了呀。里面本来就是一组数据。
https://help.fanruan.com/finereport/doc-view-223.html?source=1 超级链接
你所说的穿透是指钻取吗?
还是指传递当前页面所选的参数
如果 是当前页面的参数值传递给下一个页面
那下一个页面里的报表 sql 还是这样写 select ccuscode,ccusname from customer where ccuscode in ('"+参数名+"'),