SELECT * FROM `yw_month_his_hy` where type='${type}'
and
substr(calday , 1 ,6 )
= substr(current_date()+0 , 1 ,6 )
calday是yyyyddmm的格式
请问我这里为什么查询是空呢?
MySQL的语法/逻辑没有问题,返回数据行为空,说明通过过滤控件值过滤后,没有满足条件的数据行返回;
——————————————
SELECT * FROM `yw_month_his_hy` where
= substr(current_date()+0 , 1 ,6 ) and type='${type}'