I'm actually using a view that is adding a column including a boolean value based on some regex criteria:
select if(((tableA.text regexp 'textA|textB|blablabla') = 1),'YES','NO') AS`BLACK_LIST, tableA.text, tableA.ID
FROM tableA
I need to make all the regexp terms dynamic and to be included in a separate table, I'm trying something like:
select if(((tableA.text regexp IN (select words from tableB)) = 1),'YES','NO') AS`BLACK_LIST, tableA.text, tableA.ID
FROM tableA
But it does not work. Thx