select * from book where book_name
regexp ‘123|456|354’;#匹配任意一個字符串
正則表達式查詢
select * from book where book_name
regexp ‘^php’; 字符串開頭
regexp ‘php$’; 字符串結尾
regexp ‘p.’; #匹配任意一個字符
regexp ‘[abc]’; #匹配abc中任意一個字符
regexp ‘[^a-z]’; #匹配除字符集外任意一個字符
regexp ‘s1|s2|s3’;#匹配任意一個字符串
regexp ‘j*a’; #匹配多個該字符a之前的字符j;j+a至少一個j
regexp ‘a{3}’; #匹配字符串連續出現3次
regexp ‘a{2,4}’; #匹配字符串最少2次,最多4次