Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Write command to import an mysql file?

1093


What is difference mysql and mysqli?

1008


How do I remove a user from mysql?

1027


How can you find out the version of the installed mysql?

1372


How do you create a primary key?

1055


Why mysql is used with php?

1019


Explain the different types of constraints?

997


What is the limitation of mysql?

1012


Table - Products has number of products as below Productid ProductName 1 iPhone 2 iPad 3 BlackBerry Table - SalesPersonProduct has the below records Salespersonid productid S1 1 S1 2 S1 3 S2 1 S3 2 Write a SQL query that returns the total number of sold products

2880


How do I start and stop mysql server?

1026


How to check if a record exists in a mysql database php?

934


What you can use regular expression for in mysql?

995


In which language mysql has been written?

1389


What is triggers?

1007


How do I stop a query in mysql workbench?

1009