dcsimg
 

Generating Random Numbers in SQL

Tuesday Dec 4th 2018 by Hannes Du Preez

Language: SQL, Expertise: Intermediate - Learn how to easily generate a random number.

You can generate a Random number in SQL with the following command:

SELECT RAND() Random_Number

This returns the following value

0.713666525097956
Home
Mobile Site | Full Site