开发者

Is there a command in PostgreSQL that can find if a tuple "contains" a specific value?

开发者 https://www.devze.com 2023-02-09 01:45 出处:网络
For e开发者_如何学Goxample: How do i find if the word: \"hello\" was in the column \"greetings\"?SELECT * FROM tab where col1 LIKE \'%help%\' OR col2 LIKE \'%hello%\'

For e开发者_如何学Goxample:

How do i find if the word: "hello" was in the column "greetings"?


SELECT * FROM tab where col1 LIKE '%help%' OR col2 LIKE '%hello%'

and so on...

0

精彩评论

暂无评论...
验证码 换一张
取 消