Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-31-2004, 12:20 PM   #1
brizzad
holla
 
Join Date: Jul 2003
Location: KFC
Posts: 11,769
How can i copy one MySQL table contents to another table?

I was trying to upgrade some forums, and did something wrong along the way, long story short, all of my threads/posts/users are stored in one table and they need to be moved over to the table that my forums are looking for

is there a simple query i can run?
brizzad is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-31-2004, 12:28 PM   #2
rickholio
Confirmed User
 
Industry Role:
Join Date: Jan 2004
Location: Nor'easterland
Posts: 1,914
You can either rename the table:

RENAME TABLE tbl_name TO new_tbl_name

Or recreate the table in the correct spot and insert them:

INSERT INTO new_table SELECT * FROM old_table

HTH. HAND.
rickholio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-31-2004, 12:34 PM   #3
brizzad
holla
 
Join Date: Jul 2003
Location: KFC
Posts: 11,769
Quote:
Originally posted by rickholio
You can either rename the table:

RENAME TABLE tbl_name TO new_tbl_name

Or recreate the table in the correct spot and insert them:

INSERT INTO new_table SELECT * FROM old_table

HTH. HAND.

thanks
brizzad is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-31-2004, 01:04 PM   #4
Calvinguy
Confirmed User
 
Join Date: Oct 2002
Location: European Union
Posts: 1,752
phpmyadmin usually take care of all my mysql actions
Calvinguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.