d0-0b

字段 like ‘匹配串1’or 字段 like ‘匹配串2’or ... 有如下简写方式

oracle:

select  * from tablex where REGEXP_LIKE(字段名, \'(匹配串1|匹配串2|...)\') ;//全模糊匹配

select  * from tablex where REGEXP_LIKE(字段名, \'^(匹配串1|匹配串2|...)\') ";//右模糊匹配

select  * from tablex where REGEXP_LIKE(字段名, \'(匹配串1|匹配串2|...)$\') ";//左模糊匹配

 

SqlServer

select  * from tablex where f1 like \'%[匹配串1|匹配串2|匹配串3]%\'

 

分类:

技术点:

相关文章:

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