Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Database/World Building

Development::Database/World Building World Building forum, dedicated to the EQEmu MySQL Database. Post partial/complete databases for spawns, items, etc.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 03-05-2013, 06:31 PM
rencro
Hill Giant
 
Join Date: Sep 2008
Location: So. California
Posts: 219
Default

You can get the next available with this sql if you like, not sure you would want to automate it though...If you did you would end up having to query the db to discover where it put your recipes anyways..

Code:
SELECT t1.id + 1
FROM tradeskill_recipe t1
WHERE NOT EXISTS (
    SELECT * 
    FROM tradeskill_recipe t2
    WHERE t2.id = t1.id + 1
)
LIMIT 1
Me personally I put all my customs after the last used id of a table with some cushion...Then I can insert in a given range. I like to have a record of what my sql is doing, and automating takes that away..If you are using excel then you can easily build an sql Insert query from it..

And c0ncrete, nice sql, i went a different route to remove my spells from merchants and loot drops but this is very cool, just add this to get it imported into excel if on windows(prob alread know this)

Code:
INTO OUTFILE 'c:/reneq/non_merchant_spells.csv'
FIELDS TERMINATED BY '\,'
LINES TERMINATED BY '\n';
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 11: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