mysql - regular expression -


i want create regex find single 1 flowing

  • 1,2
  • 2,1
  • 3,1,2
  • 7,171,818
  • 71,17,11
  • 1

note : needed mach bold in prev list

you can go either approach ...

select data sample data regexp '^1,|,1$|,1,|^1$' 

enter image description here

select *  sample  (data '1,%'  or data '%,1'  or data '%,1,%'  or data '1') 

enter image description here


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -