MySQL Forums
Forum List  »  PHP

Perform a JOIN IF row = X
Posted by: Tiago Conceição
Date: October 17, 2009 09:38AM

its is possible perform a JOIN if the row have a certain value?

example:

SELECT id, item, ... IF(id > 5, JOIN ..., nothing)

so i want perform a single SELECT with a JOIN if a id > 5, otherwise dont performe JOIN


Thanks

Options: ReplyQuote


Subject
Written By
Posted
Perform a JOIN IF row = X
October 17, 2009 09:38AM
October 18, 2009 10:47AM


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.