Why did MySQL SUM IF quit working in 2021

前端 未结 0 385
慢半拍i
慢半拍i 2021-02-04 09:23

This code quit working in 2021 after working in 2020:

SELECT name, SUM(CASE WHEN YEARWEEK(prod_date) = YEARWEEK(now()- INTERVAL 1 WEEK) THEN gas_prod ELSE NULL END)

相关标签:
回答
  • 消灭零回复
提交回复
热议问题