-
Randomising rows in MySQL
Just wondering if there is a way you can select an entire table in MySQL and instead of selecting from top to bottom, it randomises it?
For example, if you do a select * from table, you may get
row 1
row 2
row 3
row 4
etc...
is there a way to select * from table and get randomised rows like so:
row4
row1
row3
row2
etc...
-
********* Callithumpian
SELECT *
FROM TableName
ORDER BY RAND()
-
Perfect... thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks