Previous Thread
Next Thread
Print Thread
Rate Thread
copying a table #285522
06/10/2005 12:17 PM
06/10/2005 12: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 1:29 PM
06/10/2005 1: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 2:11 PM
06/10/2005 2: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
badfrog
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
Show All Member Profiles 
Forum Statistics
Forums64
Topics37,465
Posts293,521
Members13,801
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,947
Greg Hard 5,533
Top Posters(30 Days)
isaac 1
Today's Statistics
Currently Online 757
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 17
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2018 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.0
(Snapshot build 20181115.dev)
PHP: 5.4.45 Page Time: 0.031s Queries: 15 (0.010s) Memory: 3.1695 MB (Peak: 3.4063 MB) Data Comp: Zlib Server Time: 2018-12-17 15:03:12 UTC