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
Post a Comment