Go Back   EQEmulator Home > EQEmulator Forums > General > General::General Discussion

General::General Discussion General discussion about EverQuest(tm), EQEMu, and related topics.
Do not post support topics here.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-12-2006, 05:51 AM
zephyr325
Hill Giant
 
Join Date: Sep 2004
Posts: 117
Default Perl Script to Compare Two Database Tables - What's Different?

Hiyas, folks.

I've got two databases loaded up on my server - the "regular" eq database, and the PEQ_Lucin database. My server is running off the "regular" databsae, but there's a lot of stuff that I'm pulling out a bit at a time from the PEQ_Lucin database. One of the things I kept running into was wanting to see if there was an item in one database not in the other. Below is a perl script that will allow you to input your "first" database name, your "second" database name, your "table" name and your "compare column" name. It will then print out a list of items in the second database that are not in the first one. There's probably a way to do this in SQL, but I couldn't find it, so here's a script that might be useful to someone.

Usage:

unique.pl -f database1 -s database2 -t table -c column

So...this program will load up the column from the table you specific in the 2nd database and see if that item exists in the first database. If it doesn't, it will print out that row for 'ya, and at the end will tell you how many differences there are.

I get an error when I upload the script. You can find it at http://www.verycarr.com/apps/scripts/unique_items.pl
__________________
"Like what you like, enjoy what you enjoy, and don't take crap from anybody."

Last edited by zephyr325; 08-12-2006 at 02:07 PM..
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 06:17 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3