SQL语句实现下拉框参数联动
把你sql复制到问题你,帮你改一下
SELECT
st_select_date,
SUM ( st_hj_sum ) 昨日销售金额
FROM
store_receive_report_modify
WHERE
st_store_name != '的荟馆'
AND date_format ( st_select_date,'%Y-%m-%d' ) = '${FORMAT(MONTHDELTA(CONCATENATE(month,"-",day-1),-1),"yyyy-MM-dd")}'
GROUP BY
st_select_date
把这个放单元格看下值
FORMAT(MONTHDELTA(CONCATENATE($month,"-",$day-1),-1),"yyyy-MM-dd")