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 do I exit mysql?

586


what is constraints?

721


How can you retrieve a particular number of records from a table?

582


What are the 3 main types of search queries?

539


What is regex in mysql?

618






What does do in mysql?

556


What is the difference between a heap table and temporary table?

571


What are the common mysql functions?

580


Is mongodb faster than mysql?

573


Can you tell few best practices to be followed for optimization in sql?

574


In which language mysql has been written?

953


If you are assigned a task, to find the information of procedures. What are the basic commands that you will use to do so?

580


What is the difference between MyISAM Static and MyISAM Dynamic?

657


How can I see connections in mysql?

566


What is the difference between unix timestamp and mysql timestamp?

595