MySQL Forums
Forum List  »  Newbie

Re: Merge Tables ?
Posted by: Arie Nagel
Date: August 18, 2005 03:17AM

You could try this:

INSERT INTO table_c
(name, town, pcode)
SELECT t1.name, t2.town, t2.pcode
FROM table_a t1, table_b t2
WHERE t1.town = t2.town;

Options: ReplyQuote


Subject
Written By
Posted
August 17, 2005 09:46PM
Re: Merge Tables ?
August 18, 2005 03:17AM
August 18, 2005 12:11PM


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.