Vinay <[EMAIL PROTECTED]> wrote:
> Hi i'm trying to write an sql statement which will make a copy of a
> table including all its data and indexes. The problem comes with the
> fact that the table contain over 20 million lines and i'm looking for a
> code or an sql statement that will duplicate this table including its
> indexes.
> 
> i'm using mysql MySQL 3.23.49
> 

If table has many indexes it will be faster to create table without indexes with 
CREATE .. SELECT statement and then add indexes.



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to