Created
November 17, 2019 20:22
-
-
Save vmussak/0672b1aa9a76fc86edeadebfaab11120 to your computer and use it in GitHub Desktop.
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
DECLARE @Contador INT = 1000000 | |
WHILE @Contador > 0 | |
BEGIN | |
INSERT INTO Cliente(Nome, Sobrenome, Email) | |
VALUES ( | |
SUBSTRING(REPLACE(CONVERT(VARCHAR(250),NEWID()), '-', ''),1,15), | |
SUBSTRING(REPLACE(CONVERT(VARCHAR(250),NEWID()), '-', ''),1,15), | |
LOWER(SUBSTRING(REPLACE(CONVERT(VARCHAR(250),NEWID()), '-', ''),1,30)) + '@email.com' | |
) | |
SET @Contador = @Contador - 1 | |
END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment