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

html - How to custom Bootstrap grid height? -

javascript - pass values from mssql to views in node -

javascript - Understanding ExtJS Framework Syntax -