In this example, I am using MySQL Command for searching comma-separated  values from MySQL database. If we have values like 4, 5, 6, 7, 25, 17. Then with the help of MySQL command we can easily search for any particular value from database.
But comma-separated value should be included comma. So simply copy and paste the command written below  in your project page and change tablename, your_search_keyword and column_name.

SELECT * FROM tablename WHERE FIND_IN_SET (your_search_keyword , column_name)

Example: -  select * from tbl_name WHERE FIND_IN_SET(5, column_name)

This tutorial is mostly use when we retrieve data from the table, and insert data into the form like comma-separated.

If you are still face any problem then contact through contact form. your feedback is very important for me.

Thanks for Reading Blog.


0 comments :

Post a Comment

 
# Top