Hi I have a table which was designed by a lazy developer who did not created it in 3rd normal form. He saved the arrays in the table instead of using MM relation . And the application is running so I can not change the database schema.
I need to query the table like this:
SELECT * FROM myTable WHERE usergroup = 20
where usergroup field contains data like this : 17,19,20 or it could be also only 20 or only 19.
I could search with like: SELECT * FROM myTable WHERE usergroup LIKE 20 but in this case it would match also for field which contain 200 e.g.
Anybody any idea? thanx