i try to join my post table rows with terms table, my database post and database structure is same as wordpress, i don’t know how join one row with multiple rows;
CLEAR Example:
post table :
post_id
post_title
post_content
post_dateline
post_owner
terms table:
term_id
term_name
term_title
term_type
term_relationships table:
post_id
term_id
Now i have :
a post with id value 3;
three terms with id values (4,6,7)
term_relationships rows like:
post_id term_id
3 4
3 6
3 7
is possible get all these information with one query, or i should first query posts, then try get terms information?
Use GROUP_CONCAT function of mysql it will join multiple rows to a single row but give you the result as a comma seperated field.