Previous Thread
Next Thread
Print Thread
Rate Thread
copying a table #285522 06/10/2005 12:17 PM
Joined: Feb 2002
Posts: 2,286
Ian_W Offline OP
OP Offline
Joined: Feb 2002
Posts: 2,286

Can anyone help me with this. Should be fairly simple and I have tried

select * from w3t_Groups into w3t_Groups_Master

without joy.

I need to make a backup of w3t_Groups before I start fiddling with it


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Sponsored Links
Re: copying a table [Re: Gorlum] #285523 06/10/2005 1:29 PM
Joined: May 2001
Posts: 550
Anno Offline
Code Monkey
Code Monkey
Joined: May 2001
Posts: 550
 <br />CREATE TABLE `w3t_Groups_Master` (<br />`G_Name` varchar( 250 ) default NULL ,<br />`G_Id` int( 4 ) unsigned NOT NULL AUTO_INCREMENT ,<br />`G_Disabled` int( 1 ) unsigned default '0',<br />PRIMARY KEY ( `G_Id` )<br />) TYPE = MYISAM ;<br /><br />INSERT INTO `w3t_Groups_Master`<br />SELECT *<br />FROM `w3t_Groups` ;<br /><br /> 

Re: copying a table [Re: domain123] #285524 06/10/2005 2:11 PM
Joined: Oct 2003
Posts: 2,305
scroungr Offline
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
or use phpMyAdmin and do Operations and there is a MOVE, COPY, RENAME, etc command

Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
Visit us on Facebook
Member Spotlight
Posts: 448
Joined: February 2008
Forum Statistics
Most Online5,166
Sep 15th, 2019
Top Posters(All Time)
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,787
Greg Hard 4,625
Top Posters(30 Days)
isaac 4
DCPhil 2
Gizmo 1
Today's Statistics
Currently Online 1003
Topics Created 0
Posts Made 0
Users Online 1
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2019 VNC Web Services

Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build
Responsive Width:

PHP: 5.4.45 Page Time: 0.037s Queries: 15 (0.011s) Memory: 3.2069 MB (Peak: 3.4379 MB) Data Comp: Zlib Server Time: 2019-11-15 22:28:33 UTC
Valid HTML 5 and Valid CSS