At 17:59 -0800 11/2/05, Brian Dunning wrote:
If I say:

SELECT *
FROM tablename
ORDER BY rand()
LIMIT 50

Will that give me the first 50 records from the table and randomize their order, or will it give me 50 records randomly from throughout the entire table?

LIMIT is applied after ORDER BY.

--
Paul DuBois, MySQL Documentation Team
Madison, Wisconsin, USA
MySQL AB, www.mysql.com

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to