标签: mysql
select date, name, id from tb_task group by YEAR(date), MONTH(date)
我试试这个但是失败了
select date_input,id,name from tb _task where YEAR(date_input) == YEAR($date)