Previous Thread
Next Thread
Print Thread
Rate Thread
copying a table #285522
06/10/2005 1:17 PM
06/10/2005 1:17 PM
Joined: Feb 2002
Posts: 2,575
England
Ian_W Offline OP
Veteran
Ian_W  Offline OP
Veteran
Joined: Feb 2002
Posts: 2,575
England
Hi,

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

Thanks.


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 2:29 PM
06/10/2005 2:29 PM
Joined: May 2001
Posts: 562
Austria
A
Anno Offline
Code Monkey
Anno  Offline
Code Monkey
A
Joined: May 2001
Posts: 562
Austria
Code
 <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 3:11 PM
06/10/2005 3:11 PM
Joined: Oct 2003
Posts: 2,409
Richmond, VA
scroungr Offline
Old Hand
scroungr  Offline
Old Hand
Joined: Oct 2003
Posts: 2,409
Richmond, VA
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
· Blue Host
· Interserver.net
Visit Us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,938
Joined: January 2000
Show All Member Profiles 
Forum Statistics
Forums64
Topics37,448
Posts293,484
Members13,793
Most Online1,498
Mar 17th, 2017
Top Posters(All Time)
AllenAyres 25,587
JoshPet 11,330
Rick 8,373
LK 7,396
Lord Dexter 6,503
Gizmo 5,938
Greg Hard 5,533
Top Posters(30 Days)
isaac 4
Today's Statistics
Currently Online 713
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 22
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2018 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.6.2
(Preview build 20180622.dev)
Page Time: 0.030s Queries: 15 (0.010s) Memory: 3.2320 MB (Peak: 3.3603 MB) Zlib enabled. Server Time: 2018-06-22 17:04:09 UTC