jason216
09-15-2004, 08:35 PM
Hi
I want to insert DISTINCT data from a table (contain 7,000,000 records) to another table.
When I try to run the command (see below) in SSH, it is taking much CPU and fill up (90%) the Disk hda7 (/tmp) DMA+.
After an hour time, it is aborted . Nothing inserted to the table.
so its failed to insert.
How can I fix it ?
Thanks
mysql> INSERT INTO insert_table (data) SELECT DISTINCT data FROM get_table GROUP BY data;
I want to insert DISTINCT data from a table (contain 7,000,000 records) to another table.
When I try to run the command (see below) in SSH, it is taking much CPU and fill up (90%) the Disk hda7 (/tmp) DMA+.
After an hour time, it is aborted . Nothing inserted to the table.
so its failed to insert.
How can I fix it ?
Thanks
mysql> INSERT INTO insert_table (data) SELECT DISTINCT data FROM get_table GROUP BY data;
