I have a query like so :
SELECT * FROM table WHERE premium = 3
I’m just wondering how I can have it return a random order for the results!
i was told not to use ORDER BY RAND(); because of the amount of system resources it uses.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
How many results are you expecting? If it’s small, why not just grab all of the results and then select random indices from them?