If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Cannot write sorted rows

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-10-07, 05:08
mycomic mycomic is offline
Registered User
 
Join Date: Aug 2007
Posts: 1
I have the same problem
Reply With Quote
  #2 (permalink)  
Old 08-10-07, 13:40
loquin loquin is offline
Super Moderator
 
Join Date: Jun 2004
Location: Arizona, USA
Posts: 1,797
Database systems do not store data in any particular order at all. Nor are they guaranteed to retrieve data in any order, except when you supply the sort order as a part of your SQL statement.
__________________
Lou
使大吃一惊
"Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
"I have my standards. They may be low, but I have them!" - Bette Middler
"It's a book about a Spanish guy named Manual. You should read it." - Dilbert

Reply With Quote
  #3 (permalink)  
Old 08-10-07, 17:51
Tyveleyn Tyveleyn is offline
Registered User
 
Join Date: Aug 2006
Location: The Netherlands
Posts: 248
In Informix the default order of results on one single table is decided by the order in which the rows were inserted. The primary index stores for every row the key value(s) together with a kind of serial called rowid. This rowid is a pointer to the specific row in the involved datapage and is assigned during insertion of the row.
With results of multi table queries I guess it's decided by the rowids of the dominant table and in many cases dependent of the query plan of the optimizer.

Regards
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On