MySQL Forums
Forum List  »  Newbie

where in multiple columns
Posted by: andrew niesen
Date: September 06, 2004 05:11PM

Hi,

I am attempting to search multiple columns for the same foriegn key.

I have the following columns in my catalog_images table:
nID,
strFileName,
nCategoryA,
nCategoryB,
nCategoryC,
nCategoryD,
nCategoryE

and I want to select strFileName from catalog_images where ANY of the following matches occur:
nCategoryA="1",
nCategoryB="1",
nCategoryC="1",
nCategoryD="1",
nCategoryE="1"

I can't figure out my query string. Any suggestions?

Thanks!

Andrew

Options: ReplyQuote


Subject
Written By
Posted
where in multiple columns
September 06, 2004 05:11PM
September 07, 2004 02:20AM


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.