Skip to content

Tag: sql

Regular expression blacklist

Can someone explain to me the meaning of the following query: SELECT message.message FROM message CROSS JOIN Blacklist WHERE(message.message LIKE {fn CONCAT({fn CONCAT(‘%’, Blacklist.Words)}, ‘%…

LIKE in multiple columns

I have columns title, description, keywords and I want to search a text in them. I’m using PostgreSQL. SELECT title FROM products WHERE ANY(ARRAY(title, description, keywords) like ‘%test%’) I’…