SELECT title, title REGEXP 'apple' as is_fruit FROM mytable;
TO:
SELECT title, title REGEXP 'apple' or orange...or grapes...as is_fruit...
基本上,我如何为REGEXP做“OR”?
答案 0 :(得分:1)
SELECT title, title REGEXP '(apple|orange|...)' as is_fruit FROM mytable;