MySQL Forums
Forum List  »  General

Re: Returned two values from a case statement?
Posted by: Peter Brawley
Date: December 23, 2005 11:59AM

Brent,

If I understand query ...

SELECT *
FROM table
WHERE otherfield=3
OR (otherfield=1 AND tablefield IN (0,8));

why not PREPARE the query string uo to IN(...), CONCAT a string of the IN(...) expression, then execute the prepared statement?

Peter

Options: ReplyQuote


Subject
Written By
Posted
Re: Returned two values from a case statement?
December 23, 2005 11:59AM


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.