How we can copy one table data into another table whose name
same as table but in differ database

Answer Posted / guru

INSERT INTO database2.table_name (column_name)
SELECT table_name.column_name FROM table_name

If two databases are in same server, this code will work.
For more details visit,
http://www.phponwebsites.com/2013/12/Copy-values-from-one-database-to-another-in-mysql.html

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is data node in mysql cluster?

498


How do I install mysql on windows 10 64 bit?

461


How can I create a database in mysql?

457


Is mysql running ubuntu?

473


What are mysql functions?

484






How do I connect to a mysql database?

480


How can you filter the duplicate data while retrieving records from the table?

462


What is the use of mysqli_fetch_assoc?

482


What data structure does mysql use?

572


What is mysql and how it works?

452


Does mysql scale well?

491


Can you tell which of the following where clauses is faster?

434


What is truncate in mysql?

417


Which datatype is used for email in mysql?

472


Explain about the architecture of MYSQL?

540