Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Other Web Development Languages (http://www.programmingforums.org/forum40.html)
-   -   Storing an ordered list in Oracle (http://www.programmingforums.org/showthread.php?t=14193)

Dameon Oct 19th, 2007 11:39 PM

Storing an ordered list in Oracle
 
Surely there is some kind of built in feature for maintaining the order of a set of items?

Here's what I don't want, but I have a feeling I'll end up having to do anyway.
1. Linked list. Too much logic to replicate in any app using the database. Even just displaying the items in order would require processing of the query results.

2. Numeric indexes. Items will frequently be inserted, not just added. Displaying or paginating the sequence could be done with one query and no special processing. Shifting items down for an insert could be done with one extra query. This is actually potentially better than 1, though.

Seems like I'm having to reinvent the wheel here, so surely I'm missing something.


All times are GMT -5. The time now is 12:21 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC