MySQL Forums
Forum List  »  Newbie

Re: Constructing a multi-table query
Posted by: Rick James
Date: October 24, 2014 11:50AM

It's called "JOIN":

SELECT  t.term_id, r.object_id
    FROM  wp_terms AS t
    JOIN  wp_term_relationships AS r ON r.term_taxonomy_id = t.term_id
    WHERE  name = 'blah'; 

Options: ReplyQuote


Subject
Written By
Posted
Re: Constructing a multi-table query
October 24, 2014 11:50AM


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.