MySQL Forums
Forum List  »  Perl

Re: querying comma seperated values in a db field?
Posted by: Stephen Madison
Date: September 28, 2006 06:00PM

OK. I am trying everything and nothing is working so now I am thinking that I could use split on the $dbins_fd_ref before it gets to the sql query (splitting on the commas) which should split the comma separated values into array elements, no?
Then I should be able to use something such as:

WHERE product_xcat LIKE $array[0,1,2,3,4]

If this doesnt work is there a way to do this in an OR fasion such as:

WHERE product_xcat LIKE $array[0] OR $array[1] ...

This is getting frustrating. Thanks for helping!

Options: ReplyQuote


Subject
Written By
Posted
Re: querying comma seperated values in a db field?
September 28, 2006 06:00PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.