I'm trying to find a date within a MySQL field that contains several dates separated by commas. Example:
tabla_agenda: id (integer) fechas (text o varchar)
Example of the table:
registro: 1 / 2017-04-04,2017-04-06,2017-04-08
registro: 2 / 2017-04-08,2017-05-08,2017-06-08
The query I want to make is s elect * from tabla_agenda where '2017-04-08' in (fechas)
But it does not give me any results. If I leave only one date, he finds it well, he does not take into account the separation of the commas as a whole. I have tried single quotes, double quotes in both criteria and records
Any ideas?