MySQL Forums
Forum List  »  Newbie

Order by 'attribute' Random
Posted by: Ian Ruff
Date: May 10, 2005 09:09AM

I was wondering if you can order a list randomly as you would desc or asc?

for example:

$sql = 'SELECT * FROM `News` order BY `num` desc LIMIT 0, 30';

except have it list the results randomly instead of desc.

Thanks,
Ian

Options: ReplyQuote


Subject
Written By
Posted
Order by 'attribute' Random
May 10, 2005 09:09AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.