oracle259 Posted October 13, 2006 Share Posted October 13, 2006 How do i order my mysql results by the longest length egI have the following words in the dbstringstringeststringerhow do i get the following resultsstringeststringerstring Quote Link to comment Share on other sites More sharing options...
fenway Posted October 13, 2006 Share Posted October 13, 2006 ORDER BY LENGTH(yourField) DESC Quote Link to comment Share on other sites More sharing options...
oracle259 Posted October 13, 2006 Author Share Posted October 13, 2006 thanks u guys rock. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.