i have two tables
tweets(id,user_id,lang);
//lang is enum (en,fr,ar,ch)
user(id,accepted_lang);
// accepted_lang is varchar and can vary like en,ar OR ar,fa OR en,fa etc
I want to select all tweets with accepted languages by user.
select * from tweets where lang in (select accepted_lang from user where id=16);
#return 0 row
If i replace select accepted_lang from user where id=16 with its result fa,ar it will return some of rows
select * from tweets where lang in ('fa','ar');
#return some of rows
So actually my problem is how to convert varchar to enum or table
likein the title, but I don't see anylikeclause in question.LIKEclause. It might use anINclause (depending on exactly what you're trying to do), but not aLIKE.LIKEmakes no sense at all with an enum field.