User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 456,581 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,653 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser: Programming Forums

order by....

Join Date: Mar 2006
Posts: 1
Reputation: fleetwood is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
fleetwood fleetwood is offline Offline
Newbie Poster

Re: order by....

  #2  
Jan 14th, 2007
Originally Posted by xibnoe View Post
i have a fied (book_number), the value is "aaa.bbbb.cccc.ddd", How can i sort the result order only by "bbbb" and ignore a, c, and d.

thanks

Try using the SUBSTRING() function in the ORDER BY
Reply With Quote  
All times are GMT -4. The time now is 6:24 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC