有没有办法获得各种REGEXP

时间:2015-01-22 10:06:02

标签: mysql sql phpmyadmin

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。

1 个答案:

答案 0 :(得分:0)

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

AND nomes REGEXP 'akira|secondvalue|thirdvalue'

Here is more info.