Reverse SQL LIKE

Is it possible in SQL (more precisely, PostreSQL) to match a row with a template stored in a table, so that when I have a DB field containing %some% , I could select its row something like this:

 SELECT * FROM table_name WHERE field_value LIKE 'Awesome stuff' 

Thanks.

+4
source share
1 answer
 SELECT * FROM table_name WHERE 'Awesome stuff' LIKE field_value 
+13
source

Source: https://habr.com/ru/post/1337160/


All Articles