ciao
io ho una tabella(mysql) con un campo data (0000-00-00) come faccio ad estrarre tutti i record del mese attuale ?
ciao
io ho una tabella(mysql) con un campo data (0000-00-00) come faccio ad estrarre tutti i record del mese attuale ?
Kalton
-------------------
www.kalton.it - www.kalton.cavarzere.it
Cerca nel manuale ufficiale di MySQL le funzioni YEAR() e MONTH() ed eventualmente CURDATE()
codice:select * from tabella where extract(year_month from campo_data) = extract(year_month from curdate() )