![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
holla
Join Date: Jul 2003
Location: KFC
Posts: 11,769
|
Quote:
thanks ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Oct 2002
Location: European Union
Posts: 1,752
|
phpmyadmin usually take care of all my mysql actions
|
![]() |
![]() ![]() ![]() ![]() ![]() |