Re: [PHP-DB] MySQL: Top $num results

2005-02-13 Thread John Holmes
ioannes wrote: "If you use LIMIT row_count with ORDER BY, MySQL ends the sorting as soon as it has found the first row_count lines rather than sorting the whole table. " http://dev.mysql.com/doc/mysql/en/limit-optimization.html I need to get the top $num results from a completely sorted table (e

[PHP-DB] MySQL: Top $num results

2005-02-13 Thread ioannes
"If you use LIMIT row_count with ORDER BY, MySQL ends the sorting as soon as it has found the first row_count lines rather than sorting the whole table. " http://dev.mysql.com/doc/mysql/en/limit-optimization.html I need to get the top $num results from a completely sorted table (eg sorted on ID