Select value from single value from multiplie vlaue column in mysql -


for example table: datauser

plans -------- 109,1009,178 

select rows datauser plans = 109 .

used query. please try query:-

select *  datauser  plans "109" or plans "109,%" or plans "%,109"  or plans "%,109,%" 

which means there can 4 conditions in column:

plans column has '109' in it, or ',109,' in or '109,' in it, or ',109' in it.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -