oracle 字段like多个条件(or关系)REGEXP_LIKE的使用

select id, name
  from BASE_SECURITY_DEPARTMENT
 where parent_id = '1'
   and REGEXP_LIKE(name, '(客运处|货运处|运输处)$');
>>更多…
and REGEXP_LIKE(字段名, '(匹配串1|匹配串2|...)')--//全模糊匹配
and REGEXP_LIKE(字段名, '^(匹配串1|匹配串2|...)')--//右模糊匹配
and REGEXP_LIKE(字段名, '(匹配串1|匹配串2|...)$')--//左模糊匹配

包括:REGEXP_LIKE

不包括:NO REGEXP_LIKE

猜你喜欢

转载自blog.csdn.net/u013199013/article/details/81256485