Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Tools

Archive::Tools Archive area for Tools's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 01-12-2004, 02:24 PM
astonerii
Sarnak
 
Join Date: Jan 2004
Posts: 44
Default Database cleaner

I was wondering if there were any tools/programs that I could use to remove duplicate entries from a .sql file?

I ask because there seems to be alot of different databases, and I would like to be able to put them all into one file, and then have another program clean them, by removing duplicated entries.
Reply With Quote
  #2  
Old 01-12-2004, 02:59 PM
Shawn319
Demi-God
 
Join Date: Jan 2002
Posts: 2,073
Default

notepad.exe




[/joke]

i wish.
__________________
Shawn319
Semi-Retired EQ Addict

(Retired)EQEmu Lead Tester
(Retired)EQEmu Tech Support

(Retired)Host/ServerOP - [LIVE] Official EQEmu Test Server
(Retired)Host/ServerOP - Shawn319's All-GM Dev Test Server
(Retired)ServerOP - EQEmu Beta Server
(Retired)ServerOP - GuildWars Server
(Retired)ServerOP - Raid Addicts
--------------------------
Reply With Quote
  #3  
Old 01-12-2004, 03:22 PM
astonerii
Sarnak
 
Join Date: Jan 2004
Posts: 44
Default

I have tried to use MS EXCEL but it has a 65536 limit... and many of the parts have well over 100000.
Reply With Quote
  #4  
Old 01-12-2004, 05:04 PM
farce
Hill Giant
 
Join Date: Feb 2003
Posts: 126
Default

personally i'd use perl or sed or some such tool, and change all of the INSERT INTO's into REPLACE INTO's..

that way it wont complain about duplicate keys... it'll just replace what's using that key with the last one..

cat foo.sql | sed -e 's/INSERT INTO/REPLACE INTO/' > out.sql

would do it nicely.
Reply With Quote
  #5  
Old 01-12-2004, 07:50 PM
Lurker_005
Demi-God
 
Join Date: Jan 2002
Location: Tourist town USA
Posts: 1,671
Default

There isn't an easy way that does not involve lots of manual labor.

About the closest I have seen anyone come with a automated way was http://www.eqemulator.net/forums/vie...c&start=34 But that is a very basic way, and you have to already have the sql data merged without overwriting each other.
__________________
Please read the forum rules and look at reacent messages before posting.
Reply With Quote
Reply


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 03:35 AM.


 

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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3