MySQL Forums
Forum List  »  Newbie

Re: Duplicating a table? :)
Posted by: Claude Martin
Date: July 18, 2005 01:25AM

> Just want to know the right command for
> duplicating a table? :)

you would use a tool to do so. like phpmyadmin or a program that you run on your client.
else you'd have to create a new table and then copy all rows:

CREATE TABLE `database`.`copy` ( ??? ) TYPE = ???;

INSERT INTO `database`.`copy` SELECT * FROM `database`.`mytable` ;

http://animalliberation.tk http://veganismus.ch
http://maqi.de http://tierrechtskochbuch.de

Options: ReplyQuote


Subject
Written By
Posted
July 17, 2005 10:37PM
Re: Duplicating a table? :)
July 18, 2005 01:25AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.