Count all records from database where due date matches todays date

前端 未结 2 1305
自闭症患者
自闭症患者 2021-01-26 04:26

I need to count all records from database where due date matches today date. I found out that I should be able to do this using COUNT and CURDATE. But I am not able to get it ri

2条回答
  •  太阳男子
    2021-01-26 05:03

    SELECT COUNT (id) FROM tasks WHERE due_date = CURDATE Just remove space between COUNT and (id) will work properly.

提交回复
热议问题