Databases :: MySql :: How to order the results?. |
|||
| By: TheFalklands |
Date: 26/04/2003 00:00:00 |
Points: 50 | Status: Answered Quality : Excellent |
|
Hi, I have a question. The 'ORDER BY' Clause option will sort the results in the ascending order of the clause?. What should I do if I have to get my results in the descending order?. like in this statement.. select posting_id,title from posting order by posting_id Here it selects and orders it in the ascending order of posting_id. Can someone help please?. Thanks, |
|||
| By: VGR | Date: 26/04/2003 17:21:00 | Type : Answer |
|
| add DESC ORDER BY fieldname ASC or ORDER BY fieldname DESC look in <A HREF="http://www.mysql.com">www.mysql.com</a>, in search box type "order by" or "select" and RTFM :D the signature of SELECT clearly states that ORDER BY accepts ASC|DESC ASC is by default though |
|||
|
Do register to be able to answer |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








