Usa invece DATE_FORMAT:
SELECT DATE_FORMAT('2000-07-10','%m-%d')
rendimenti
07-10
Ecco la tua query riscritta con DATE_FORMAT()
:
SELECT *
FROM table
WHERE DATE_FORMAT(field, '%m-%d') = DATE_FORMAT('2000-07-10', '%m-%d')
AND id = "1"
Usa invece DATE_FORMAT:
SELECT DATE_FORMAT('2000-07-10','%m-%d')
rendimenti
07-10
Ecco la tua query riscritta con DATE_FORMAT()
:
SELECT *
FROM table
WHERE DATE_FORMAT(field, '%m-%d') = DATE_FORMAT('2000-07-10', '%m-%d')
AND id = "1"