DrSchool Learn coding, fast.
EN AR BN CS DE EL Search

Random — Example 173

Quick explanation + ready code for: Random.

SQL Random Back to examples
Back to language
Syntax: Random in SQL. ID: #173

Code

SELECT RAND() AS r;

Notes

You can copy this snippet and adapt it. For advanced, add real-world inputs, edge cases, and tests.