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,286
England
Ian_W Offline OP
Veteran
Ian_W  Offline OP
Veteran

Joined: Feb 2002
Posts: 2,286
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: 550
Austria
A
Anno Offline
Code Monkey
Anno  Offline
Code Monkey
A

Joined: May 2001
Posts: 550
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,305
Richmond, VA
scroungr Offline
Old Hand
scroungr  Offline
Old Hand

Joined: Oct 2003
Posts: 2,305
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,779
Joined: January 2000
Show All Member Profiles 
Forum Statistics
Forums64
Topics37,482
Posts293,586
Members13,811
Most Online1,498
Mar 17th, 2017
Top Posters(All Time)
AllenAyres 21,084
JoshPet 10,370
LK 7,395
Lord Dexter 6,709
Gizmo 5,779
Greg Hard 4,625
Top Posters(30 Days)
driv 19
isaac 17
Gizmo 6
Today's Statistics
Currently Online 908
Topics Created 0
Posts Made 0
Users Online 2
Birthdays 19
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2019 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.2
(Snapshot build 20190304.dev)
PHP: 5.4.45 Page Time: 0.037s Queries: 15 (0.010s) Memory: 3.1870 MB (Peak: 3.4185 MB) Data Comp: Zlib Server Time: 2019-03-20 09:41:26 UTC