Re: copy tables between db's

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



David Smith wrote:

insert into database1.tablename select * from database2.tablename;

database1 and database2 are the names of the two databases. tablename is the name of the table you want to copy from database1 to database2.


Correction: from database2 to database1, not vice versa.

--Dave

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux