RSS

search comma separated values in mysql

24 Dec

if you use  MySQL Database Table Column that keep data comma separated  and you want to search specific Data Value Then you search like that……

SELECT * from voucherformredeam WHERE FIND_IN_SET(‘4364363’, RedeamVouchercode)

Default Function of MySQL: which is case sensitive

FIND_IN_SET 

Parameter Value:

4364363

Column Field:

RedeamVouchercode

 

 

Comma Search

Advertisements
 
Leave a comment

Posted by on December 24, 2012 in My SQL

 

Tags: , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: