regex - Mysql like regexp -


hi there here query:

select *   `person`  memo  'john smith %' or memo  '% john smith %' or memo  '% john % smith %' or memo  '%john%smith%' order case  when memo  'john smith %' 1  when memo  '% john smith %' 2  when memo  '% john % smith %' 3 when memo  '%john%smith%' 4 else 5 end  

how convert not use or operator

can regexps?

you can change where to:

where memo '%john%smith%' 

the other conditions redundant.

as order by, there isn't way simplify that.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -