Javatpoint Logo

91-9990449935

 0120-4256464

Javatpoint Logo

SQL SELECT RANDOM

The SQL SELECT RANDOM() function returns the random row. It can be used in online exam to display the random questions.

There are a lot of ways to select a random record or row from a database table. Each database server needs different SQL syntax.


If you want to select a random row with MY SQL:


If you want to select a random row with Microsoft SQL server:


If you want to select a random record with ORACLE:


If you want to select a random row with PostgreSQL:

Next TopicSQL Select As




Latest 4 Tutorials on JavaTpoint