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$'
select * sample (data '1,%' or data '%,1' or data '%,1,%' or data '1')
Comments
Post a Comment