Need a query to get a single value from comma seperated value in database using mysql -


i have these in database

1      2        3 ------------------- 1,2   2,3,4  1,2,3 

select 1 table_name

you can use find_in_set this:

select * tablename find_in_set("value","columnname") > 0 

Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -