What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » MySQL - Compare 2 tables

MySQL - Compare 2 tables
Author: Message:
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
32 / Male / Flag
Joined: Jul 2006
O.P. RE: MySQL
The 2 table definitions are exactly the same, one is just an older backup I have.

Im trying to do it per record, I updated the first post a bit with a better description.

My table structure is something like:

quote:
CREATE TABLE `upgrades` (
  `steamid` varchar(20) NOT NULL DEFAULT '',
  `vip` tinyint(1) NOT NULL DEFAULT '0',
  `playerupgrade1` int(5) NOT NULL DEFAULT '1',
  `playerupgrade2` int(5) NOT NULL DEFAULT '1',
  `playerupgrade3` int(5) NOT NULL DEFAULT '1',
  `playerupgrade4` int(5) NOT NULL DEFAULT '1',
  `playerupgrade5` int(5) NOT NULL DEFAULT '1',
  `playerupgrade6` int(5) NOT NULL DEFAULT '1',
  `playerupgrade7` int(5) NOT NULL DEFAULT '1',
  `playerupgrade8` int(5) NOT NULL DEFAULT '1',
  `upgradepoints` int(5) NOT NULL DEFAULT '30',
  `zombieupgradepoints` int(5) NOT NULL DEFAULT '10',
  `bonusupgradepoints` int(5) NOT NULL DEFAULT '0',
  `success` tinyint(1) NOT NULL DEFAULT '1',
  `playermodel` varchar(255) NOT NULL DEFAULT ''


What I am looking to compare are the playerupgrade1-4 fields from each record if the difference is > 10.

This post was edited on 10-08-2009 at 02:04 PM by Jimbo.
10-08-2009 01:59 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
MySQL - Compare 2 tables - by Jimbo on 10-08-2009 at 01:55 PM
RE: MySQL - by matty on 10-08-2009 at 01:58 PM
RE: MySQL - by Jimbo on 10-08-2009 at 01:59 PM
RE: MySQL - Compare 2 tables - by matty on 10-08-2009 at 02:18 PM
RE: MySQL - Compare 2 tables - by Jimbo on 10-08-2009 at 02:19 PM
RE: MySQL - Compare 2 tables - by matty on 10-08-2009 at 03:02 PM
RE: RE: MySQL - Compare 2 tables - by CookieRevised on 10-08-2009 at 07:21 PM
RE: MySQL - Compare 2 tables - by Jimbo on 10-08-2009 at 03:19 PM
RE: MySQL - Compare 2 tables - by Jimbo on 10-08-2009 at 07:57 PM
RE: MySQL - Compare 2 tables - by matty on 10-08-2009 at 08:09 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On