Re: "Natural" Sort
Jay Pipes wrote:
> mysql> SELECT * FROM Kanwal ORDER BY
> LENGTH(name), name;
> +---------+
> | name |
> +---------+
> | AIYC 1 |
> | AIYC 2 |
> | AIYC 3 |
> | AIYC 10 |
> | AIYC 11 |
> +---------+
> 5 rows in set (0.02 sec)
>
What if I have
AIYC 1
AIYC 10
AIYC 2
ABC 1
ABC 10
ABC 2
ABCDEF 1
ABCDEF 10
ABCDEF 2
so i that SQL statement woudln't work... anyone ????
Subject
Written By
Posted
Re: "Natural" Sort
July 22, 2005 07:48AM
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.