1
I need to create a select in Mysql to filter the month in a table, but the field where the date is set has also set the time, thus: [2017-02-04 10:00:00]
How do I filter only the date of this field considering only the month and disregarding other values such as day, year and hours?
You can cast a cast for
date
or use the functiondate()
– rray