【问题标题】:Is there a command in PostgreSQL that can find if a tuple "contains" a specific value?PostgreSQL 中是否有可以查找元组是否“包含”特定值的命令?
【发布时间】:2011-06-21 05:30:22
【问题描述】:

例如:

我如何找到单词:“hello”是否在“greetings”列中?

【问题讨论】:

    标签: sql postgresql contains


    【解决方案1】:
    SELECT * FROM tab where col1 LIKE '%help%' OR col2 LIKE '%hello%'
    

    等等……

    【讨论】:

      猜你喜欢
      • 2016-02-04
      • 1970-01-01
      • 2020-11-13
      • 1970-01-01
      • 1970-01-01
      • 2015-06-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多