Skip to content

Instantly share code, notes, and snippets.

@vincentdesmares
Created May 12, 2017 00:39
Show Gist options
  • Save vincentdesmares/3f2e7fdead86bab79c855dca2b82147d to your computer and use it in GitHub Desktop.
Save vincentdesmares/3f2e7fdead86bab79c855dca2b82147d to your computer and use it in GitHub Desktop.
CREATE TABLE employe AS (
SELECT
n AS id,
'Employe name' || n AS name,
trunc(random() * 9000 + 1000) AS salary,
chr((65 + trunc(random() * 5)) :: INTEGER) AS category
FROM
generate_series(1, 5000, 1) AS n
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment