Jump to content

rand a query row?


EchoFool

Recommended Posts

Is it possible to itegrate a rand into a query so it will find a random "row" with specified WHERE clause.

 

Like an example would be ... pick 1 row at random out of all the rows that have Type = 3 and Check = 0.

 

Can that be done in a query, or would you have to use a rand outside of the query?

Link to comment
https://forums.phpfreaks.com/topic/103342-rand-a-query-row/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.