Created
July 30, 2022 01:53
-
-
Save marcelod/89e3bb76dadb78d85b23ed665bbaca21 to your computer and use it in GitHub Desktop.
Número aleatório sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PARA GERAR UM NUMERO ALEATÓRIO NO SQL | |
-- ALEATORIO: (ALEATORIO() * (MAX - MIN + 1)) + MIN | |
-- exemplo de chamada | |
SELECT FLOOR((RAND() * (100-50+1)) + 50) AS ALEATORIO; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment