MySQL Forums
Forum List  »  Newbie

Select * From t1,t2 ON a=b problem
Posted by: jeff estal
Date: March 16, 2009 11:59AM

I'm having a problem with the ON portion of this query.

SELECT recipe_ingr.recipe_num, recipe_ingr.quantity, recipe_ingr.ingr_num, ingredients.ingr_num, ingredients.ingr
FROM `Recipe`.`recipe_ingr`, `Recipe`.`ingredients`
ON (recipe_ingr.ingr_num = ingredients.ingr_num)
WHERE recipe_ingr.recipe_num = 1;

It works fine without the "ON" statement.

Options: ReplyQuote

Written By
Select * From t1,t2 ON a=b problem
March 16, 2009 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.