Re: insert in between two rows
Posted by: anodynepres
Date: May 11, 2007 07:40AM

I'm not sure I understand why you would want to do this. If the ID column is using an auto_increment, that would suggest that this is a surrogate key which means it doesn't provide any additional information about the entity you're modeling.

If you were able to do this (and I don't think you are), that would mean updating over a billion records to insert one. I think you would be better served by letting your auto-increment run normally and add an appropriate index to allow you to retrieve your records more efficiently. No matter what you do, though, working with that much data is going to present challenges.

Options: ReplyQuote


Subject
Written By
Posted
Re: insert in between two rows
May 11, 2007 07:40AM
February 26, 2008 02:09AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.