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

Answer Posted / bhas

CREATE TABLE `bhas`.`cds` ( table structure and data)

INSERT INTO `bhas`.`cds`
SELECT *
FROM `cdcol`.`cds` ;

where bhas is new db and cds is table name, cdcol is old db

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create table show example

519


What is 'mysqld'?

499


What does tinyint mean?

499


Can foreign key have duplicate values?

491


How to Join tables on common columns.

624






What is ntext?

601


What is database url for mysql?

437


What is mysql server used for?

468


Write a query to retrieve a hundred books starting from 20th.

952


Is mysql open source?

463


How do I setup mysql?

484


How do I use mysql?

477


What is 'mysqldump'?

513


What is blob and text in mysql?

599


How to Recover a MySQL root password. Stop the MySQL server process. Start again with no grant tables. Login to MySQL as root. Set new password. Exit MySQL and restart MySQL server.

523