codice:select * from tabella where extract(year_month from campo_datetime) = extract(year_month from curdate())
edit. oppure più semplicemente
codice:select * from tabella where date_format(campo_datetime,"%Y-%m") = date_format(curdate(),"%Y-%m")![]()
codice:select * from tabella where extract(year_month from campo_datetime) = extract(year_month from curdate())
edit. oppure più semplicemente
codice:select * from tabella where date_format(campo_datetime,"%Y-%m") = date_format(curdate(),"%Y-%m")![]()