在MySQL中使用正则表达式

mysql>  SELECT  'Monty!'  REGEXP  '^o' ;
+ ----------------------+
'Monty!'  REGEXP  '^o'  |
+ ----------------------+
|                    0 |
+ ----------------------+
1 row  in  set  (0.00 sec)
  
mysql>  SELECT  'Monty!'  REGEXP  '^M' ;
+ ----------------------+
'Monty!'  REGEXP  '^M'  |
+ ----------------------+
|                    1 |
+ ----------------------+
1 row  in  set  (0.00 sec)

猜你喜欢

转载自www.linuxidc.com/Linux/2017-09/146662.htm
今日推荐