【问题标题】:Is there a way to get various REGEXP有没有办法获得各种 REGEXP
【发布时间】:2015-01-22 10:06:01
【问题描述】:
SELECT COUNT(nomes) AS Number of machines that use certain name FROM pos_systems
WHERE active=1
AND nomes IS NOT NULL
AND nomes <>''
AND nomes REGEXP 'akira'

我想知道是否有办法在同一个查询中显示多个 REGEXP。

【问题讨论】:

    标签: mysql sql phpmyadmin


    【解决方案1】:

    是的,您可以在下面的同一查询中使用多个 REGEXP

    AND nomes REGEXP 'akira|secondvalue|thirdvalue'
    

    Here is more info.

    【讨论】:

      猜你喜欢
      • 2012-09-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-27
      • 2022-01-08
      • 2017-04-20
      • 2023-03-08
      • 1970-01-01
      相关资源
      最近更新 更多