Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can I copy a table with 300000 entries... 1

Status
Not open for further replies.

halvar

Programmer
Mar 26, 2002
14
DE
Hello,
who can tell me the syntax of copying a table with 300000 entries. I'm running phpMyAdmin2.2.2 but the 'Copy table to (database.table): samedatabase.differentname' demand would always cancel the operation before all data is copied. Do you know another way of copying tables? Thanks for helping out,
Michael
 
try:

INSERT INTO database.new_table (SELECT * FROM database.old_table);

This will work as long as the table structures are exactly identical.

Kevin
 
Great, this does the job as soon as I abandon the paenthesis. Thanks a lot for helping out. [thumbsup2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top