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

Archive::Database/World Building Archive area for General Discussion's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-21-2004, 05:26 AM
KhaN's Avatar
KhaN
Dragon
 
Join Date: Mar 2004
Location: France, Bordeaux.
Posts: 677
Default DB : ID attribution question

It look like DB always remember what ID is needed. Like if my last ID is 46 in "NPC_TYPE", i spawn 4 mobs, then i want to remove one. DB wont attrib ID 49, but 50. Is there a way to fix this ? so DB will attrib ID next to the last one ? ... humm i wonder if its clear.
__________________

Reply With Quote
  #2  
Old 05-21-2004, 05:50 AM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

I was perusing the mysql documentation and:

ALTER TABLE tbl_name AUTO_INCREMENT = value

might be what you want, e.g.

ALTER TABLE npc_types AUTO_INCREMENT=49;

I've not tried it, and I would backup your db first if you do plan on trying it, just to be on the safe side
Reply With Quote
  #3  
Old 05-21-2004, 07:42 AM
KhaN's Avatar
KhaN
Dragon
 
Join Date: Mar 2004
Location: France, Bordeaux.
Posts: 677
Default

Thanks Derision, it work perfectly
__________________

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 01:45 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