Re: "Natural" Sort
I believe its MySQL v 4.0.18 ..
However I think it might be your query:
SELECT * FROM table ORDER BY CAST(mid(name, 6, LENGTH(c) -5) AS unsigned)
How do I implement the query to take the length of name instead of 6 as the total length.
What is the variable c used for ? length(c)
Instead of -5 i think its better to grab the length of name and subtract one
Maybe that would reduce the errors?
Subject
Written By
Posted
Re: "Natural" Sort
July 19, 2005 12:59PM
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.