MySQL Forums
Forum List  »  Newbie

Re: "Natural" Sort
Posted by: Kanwal Khipple
Date: July 25, 2005 06:56AM

Chris


Thank you for your assistance.
That seemed to work like a charm.


Kanwal



Chris Stubben wrote:
> If you have a delimiter separating characters and
> numbers you can use substring_index.
>
> ORDER BY substring_index(name, ' ', 1),
> substring_index(name, ' ', -1)+0;
>
> If you don't have a delimiter (ABC1, ABC2, ABC30,
> ABC10, AIYC1, AIYC2, AIYC10), then what?
>
> Chris

Options: ReplyQuote


Subject
Written By
Posted
July 18, 2005 12:42PM
July 18, 2005 04:12PM
July 19, 2005 07:41AM
July 19, 2005 12:16PM
July 19, 2005 12:59PM
July 19, 2005 02:03PM
July 19, 2005 07:40PM
July 19, 2005 07:48PM
July 19, 2005 08:37PM
July 22, 2005 07:48AM
July 22, 2005 06:23PM
Re: "Natural" Sort
July 25, 2005 06:56AM
July 25, 2005 01:18PM


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.