Home 程式語言 PHP 如何從資料庫中依某個欄位值... 程式語言PHPSQL語法 [SQL語法]如何從資料庫中依某個欄位值取出前10大? By 傑克老師 - 461 0 想做到排行榜的快速方法之一,不需要再取出一堆的資料放在Array中;只要善用底下的語法,就可以輕易的達到喔!在SQL語法最後加上 ORDER BY cpc DESC LIMIT 0, 10 -傑克老師網路創業顧問站內所有文章歡迎轉貼,但請註明出處及網址- 回覆留言 取消回覆 Please enter your comment! Please enter your name here You have entered an incorrect email address! Please enter your email address here Save my name, email, and website in this browser for the next time I comment. Notify me of follow-up comments by email. Notify me of new posts by email. Δ{{#message}}{{{message}}}{{/message}}{{^message}}Your submission failed. The server responded with {{status_text}} (code {{status_code}}). Please contact the developer of this form processor to improve this message. Learn More{{/message}}{{#message}}{{{message}}}{{/message}}{{^message}}It appears your submission was successful. Even though the server responded OK, it is possible the submission was not processed. Please contact the developer of this form processor to improve this message. Learn More{{/message}}Submitting…