select * from coffee where market like ?{m},当m为空值的时候,则执行SQL:select * from coffee;
如果需要进行模糊查询,注意需要把模糊查询的匹配字符放在参数中,不能将参数写在引号内,如select * from coffee where market like ?{m},然后在m中的值传入%market%,则执行SQL:select * from coffee where market like '%market%'。
https://www.yonghongtech.com/help/Z-Suite/9.4/ch/paramindataset.html?zoom_highligh ...
查看完整内容