MySQL Forums
Forum List  »  German

Re: Zsammenführen von 2 Identischen Tabellen
Posted by: Marcel Karras
Date: May 08, 2009 12:15AM

Hallo Jens,

hier sollte in einfaches INSERT ... SELECT ... der folgenden Form reichen:

INSERT into table_1 (`id`, `col_1`, ..., `col_n`)
(
SELECT `id`, `col_1`, ..., `col_n` FROM table_2
WHERE `id` NOT IN (
SELECT `id` from table_1 )
)

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Zsammenführen von 2 Identischen Tabellen
1729
May 08, 2009 12:15AM


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.