Created
April 19, 2012 18:49
-
-
Save rafaelbernard/2422955 to your computer and use it in GitHub Desktop.
Generate table of 1000 random rows - PostgreSQL
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
SELECT i, clock_timestamp() t1, random() r1, random() r2, random() r3, clock_timestamp() + (round(random()*1000)::text || ' days')::interval d1 | |
FROM generate_series(1,1000) i(i); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment