我在带有JXLS的模板文件中有如下SQL,SQL中有两个查询变量,但我不知道如何填写参数,感谢您的帮助!
jx:each(items="jdbc.query('SELECT * FROM DATA_DIE where stock_type = ? and matnr <> ?', '["1","1000"]')" var="DIE" lastCell="G2")
答案 0 :(得分:0)
只列出用逗号分隔的所有参数,例如
jx:each(items="jdbc.query('SELECT * FROM DATA_DIE where stock_type = ? and matnr <> ?', '1', '1000')" var="DIE" lastCell="G2")
如果它们只是数字字段,您也可以跳过值1和1000周围的引号。