Here i am showing you how to execute MySQL query finding values in a comma separated string and fetch accurate result which you looking for.
If your table field contain a comma delimited string such as (1,2,5,,9,12,15) Each number representing the available ids of other table or other value of different table.
select * from `table_name` where CONCAT(',', field_name, ',') like '%,1,%'
select * from `table_name` where find_in_set('1',field_name) <> 0
how to get comma separated values in mysql query, mysql query finding values in a comma separated string, how to store comma separated values in mysql, split comma separated values in mysql, how to match comma separated values in mysql, mysql comma separated values to rows, mysql find_in_set multiple values, sql select id comma separated, how to match comma separated values in mysql, how to get comma separated values in mysql query, split comma separated values in mysql, mysql comma separated values to rows, comma separated values in mysql search, comma separated values in mysql where clause, mysql find_in_set multiple values, mysql compare two comma separated values
My name is Mukesh Jakhar and I am a Web Application Developer and Software Developer, currently living in Jaipur, India. I have a Master of Computer Application in Computer Science from JNU Jaipur University. I loves to write on technology and programming topics. Apart from this, I love to travel and enjoy the beauty of nature.