The data in the column is saved as follows
5
1 ,3, 22, 13,
7, 13, 1
etc…
How can I search this field in mysql? for example, I would like to return all the rows who have the service 13. Is there a ready-to-use function in Mysql than can do this?
Do you think that this query would take so much time to load? There aren’t too many services (around 15) and the number of vendors would not exceed 1000…
So what you suggest is having a table which acts as an intermediate between vendors and services
please note, however, that your queries will not scale – i.e. the more rows you have, the slower the query will be
the only way to fix it is to normalize your data
storing a comma-delimited string of id values in a single column is usually but not always a bad design decision – it’s not bad provided that you never need to search within the string