Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT * FROM table AS r1
- JOIN (SELECT (RAND()*(SELECT MAX(id)-MIN(id) FROM table) +
- (SELECT MIN(id) FROM table)) AS id) AS r2
- WHERE r1.id >= r2.id ORDER BY r1.id ASC LIMIT 300
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement