create-postgres.sql 1.6 KB

1234567891011121314151617181920212223242526272829
  1. DROP TABLE IF EXISTS World;
  2. CREATE TABLE "World" (
  3. id integer NOT NULL,
  4. randomNumber integer NOT NULL default 0,
  5. PRIMARY KEY (id)
  6. );
  7. INSERT INTO "World" (id, randomNumber)
  8. SELECT x.id, random() * 10000 + 1 FROM generate_series(1,10000) as x(id);
  9. DROP TABLE IF EXISTS Fortune;
  10. CREATE TABLE "Fortune" (
  11. id integer NOT NULL,
  12. message varchar(2048) NOT NULL,
  13. PRIMARY KEY (id)
  14. );
  15. INSERT INTO fortune (id, message) VALUES (1, 'fortune: No such file or directory');
  16. INSERT INTO fortune (id, message) VALUES (2, 'A computer scientist is someone who fixes things that aren''t broken.');
  17. INSERT INTO fortune (id, message) VALUES (3, 'After enough decimal places, nobody gives a damn.');
  18. INSERT INTO fortune (id, message) VALUES (4, 'A bad random number generator: 1, 1, 1, 1, 1, 4.33e+67, 1, 1, 1');
  19. INSERT INTO fortune (id, message) VALUES (5, 'A computer program does what you tell it to do, not what you want it to do.');
  20. INSERT INTO fortune (id, message) VALUES (6, 'Emacs is a nice operating system, but I prefer UNIX. — Tom Christaensen');
  21. INSERT INTO fortune (id, message) VALUES (7, 'Any program that runs right is obsolete.');
  22. INSERT INTO fortune (id, message) VALUES (8, 'A list is only as strong as its weakest link. — Donald Knuth');
  23. INSERT INTO fortune (id, message) VALUES (9, 'Feature: A bug with seniority.');
  24. INSERT INTO fortune (id, message) VALUES (10, 'Computers make very fast, very accurate mistakes.');
  25. INSERT INTO fortune (id, message) VALUES (11, '<script>alert("This should not be displayed in a browser alert box.");</script>');
  26. INSERT INTO fortune (id, message) VALUES (12, 'フレームワークのベンチマーク');