Almost...if you want to get just one randomly:
[sql]
SELECT column FROM table ORDER BY RAND() LIMIT 1
[/sql]
You should pretty much never have to get the entire contents of a table. It scales like crap and you'll cripple the server after the table gets too big. The exception is when you know the table is going to have very few rows and you need to read each and every one of the rows in the table.
|