MySQL Forums
Forum List  »  Performance

Re: Partial key
Posted by: Felix Geerinckx
Date: June 17, 2005 01:28AM

noudshoorn wrote:

> Why do I want to use a specific index. Because I want the rows that are showed always in the order
> of name, departuredate and departure time when someone searches for informaion on name, no
> matter how many rows are in the table. Therfore I made the index.

But the order in which records are returned does not depend on whether an index is used or not. If you want your records returned in a particular order, use an ORDER BY clause, in this particular case ORDER BY name, departuredate, departuretime

--
felix
Please use BBCode to format your messages in this forum.

Options: ReplyQuote


Subject
Views
Written By
Posted
3582
June 11, 2005 12:03PM
1831
June 14, 2005 10:42AM
1958
June 14, 2005 02:16PM
1698
June 15, 2005 02:21AM
1700
June 15, 2005 05:16AM
1852
June 15, 2005 06:24AM
5054
June 15, 2005 12:06PM
1758
June 16, 2005 05:07AM
1729
June 16, 2005 07:57AM
1729
June 16, 2005 08:30AM
1785
June 16, 2005 08:50AM
1636
June 16, 2005 10:21AM
2740
June 16, 2005 03:00PM
1729
June 17, 2005 12:00AM
Re: Partial key
1650
June 17, 2005 01:28AM
1633
June 20, 2005 01:21AM
1825
June 20, 2005 06:41AM


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.