MySQL Forums
Forum List  »  Newbie

Re: Primary Key Number Sort Issue
Posted by: Andrew Gilfrin
Date: July 21, 2005 06:13AM

Don't think so, in an rdbms the order the rows are stored in is not important, therefore rows are stored in an unordered fashion, normally assosciated with the first available free space on the disk (unless your using something like Oracles Index Ordered Table). Often it appears as if the rows are ordered but this is just an effect of the disk space being used in a sequencial fashion, as soon as you start to delete rows the order can change significantly.

The only way to make sure things come out in a specific order is to use an explicit order by in the query.

Andrew Gilfrin
------------------
http://gilfster.blogspot.com
My MySQL related Blog

http://www.mysqldevelopment.com
MySQL Stored Procedure,Trigger, View.... (Just about most things these days) Information

Options: ReplyQuote


Subject
Written By
Posted
Re: Primary Key Number Sort Issue
July 21, 2005 06:13AM


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.