I have a dom table
select * from dom
dom table details:
id name skills
1 do
Skills column looks like something you might want to map with many-to-many relationship with your original "dom" table. For example:
SKILLS DOM DOM_SKILLS
id | name id | name id_dom | id_skill
---'----- ---'----- -------'---------
1 | C 1 | dom 1 | 1
2 | C++ 1 | 2
This way, your query might look bit more complex...
SELECT d.name, s.name
FROM dom d
JOIN dom_skills ds ON (d.id = ds.id_dom)
JOIN skills s ON (ds.id_skill = s.id)
WHERE s.name LIKE '%C%' OR s.name LIKE '%C++'
...but your schema will be easier to manage (think about duplicate entries, updating etc.. the normal form stuff, which is at the moment violated by your schema).