Skip to content

Oracle SQL regular expression replacement

I have an Employees table where I have columns such as last_name first_name,salary, etc.. I want to write a query which will replace S or s to ‘K’ K or k to ‘A’ A or a to ‘E’ E or e to ‘S’ for …

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)}, ‘%…

SQL.. Is it possible?

SQLite with python. column1 | column2 | a | 1 | a | 2 | a | 3 | b | 1 | b | 2 | b | 3 | c | …

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’…