Afficher un message
Vieux 05/10/2007, 23h47   #2
Paul Lautman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Copy rows from one table into another table.

Dan wrote:
> Hi, I have two different database with the same schema.
>
> I want to save some rows from one table of Database A.
>
> Then insert these rows into the corresponding table in Database B.
> What is the best way to do that?
>
> Not sure if I can use mysqldump since mysqldump always try to drop the
> table before you insert
> the rows. But I need to keep the table in Database B. Thanks!


mysqldump doesn't always try to drop the table. There are options on
mysqldump that enable you to produce only the INSERT statements and nothing
else.

To find the details search for mysqldump in the manual (you know that book
that other people go to when they need an answer to a question like this).


  Réponse avec citation
 
Page generated in 0,04375 seconds with 9 queries