Hi,

Here is the table structure:
id (auto increment)
keywords (Text)

and values are:
1 google,microsoft
2 r,b
3 america,argentina

the keywords fieild has comma seperated values.
If i want to search for R then i it should only return one row. i.e. 2nd row.

but in my case, its returning all three rows because they have R in them.

My sql query is:

select * from table_name where keywords like 'r%'
i also tried:
select * from table_name where keywords like '%r'
and
select * from table_name where keywords like '%r%'

Can anybody tell me exact query that will return exact matched results.