LIKE
%  表示任何字符(NULL除外)出现任意次(0--无穷个)。同时还必须注意大小写问题。
_    表示任何字符出现1(不能多也不能少)次
 
 
正则模式
^ $ .(匹配任意单个字符,包括换行)
[]  |
 * + ? 
(m) (m,) (m,n) (,n) 
 

mysql> select 'abcdefg' REGEXP '^a'

mysql> select 'abcdef' Regexp 'g$';
mysql> select 'abcdef' Regexp '.f';
mysql> select 'abcdef' Regexp '[fhk]';
mysql> select  name,mail,from t where mail  Regexp '@163[.,]com$';
mysql> select  name,mail,from t where mail  like '@163%.com' or mail  like '@163%,com';

相关文章:

  • 2021-06-08
  • 2022-12-23
  • 2022-12-23
  • 2021-06-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-17
  • 2021-12-06
  • 2021-07-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案