I am trying to create an examination system, wherein i have databank in mysql. I would like to randomly select questions that will be display in the textbox.
Asked
Active
Viewed 8 times
0
-
Possible duplicate of [How to request a random row in SQL?](http://stackoverflow.com/questions/19412/how-to-request-a-random-row-in-sql) – Nhan Aug 07 '16 at 14:44
1 Answers
1
You can obtain a random row this way
SELECT * FROM Your_table ORDER BY RAND() LIMIT 1

ScaisEdge
- 131,976
- 10
- 91
- 107
-
Well if my answer is what you are looking for please merk it as accepted .. – ScaisEdge Aug 07 '16 at 14:45