select * from a where filename ='${CONCATENATE(city,start_date,"-",end_date)}'
______
上sql.
sql 是什么样的。字段是什么样的。截个图看下。
select * from a where right(filename,8)<='20200520' and right(filename,17,8)>='20200520'
用字符串截取,再跟一个日期比较
select * from a where filename='${city}'+'${start_date}'+'-'+'${end_date}' 这个意思?