create-postgres.sql 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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, 'フレームワークのベンチマーク');
  27. DROP TABLE IF EXISTS "World";
  28. CREATE TABLE "World" (
  29. id integer NOT NULL,
  30. randomNumber integer NOT NULL default 0,
  31. PRIMARY KEY (id)
  32. );
  33. INSERT INTO "World" (id, randomnumber)
  34. SELECT x.id, random() * 10000 + 1 FROM generate_series(1,10000) as x(id);
  35. DROP TABLE IF EXISTS "Fortune";
  36. CREATE TABLE "Fortune" (
  37. id integer NOT NULL,
  38. message varchar(2048) NOT NULL,
  39. PRIMARY KEY (id)
  40. );
  41. INSERT INTO "Fortune" (id, message) VALUES (1, 'fortune: No such file or directory');
  42. INSERT INTO "Fortune" (id, message) VALUES (2, 'A computer scientist is someone who fixes things that aren''t broken.');
  43. INSERT INTO "Fortune" (id, message) VALUES (3, 'After enough decimal places, nobody gives a damn.');
  44. INSERT INTO "Fortune" (id, message) VALUES (4, 'A bad random number generator: 1, 1, 1, 1, 1, 4.33e+67, 1, 1, 1');
  45. INSERT INTO "Fortune" (id, message) VALUES (5, 'A computer program does what you tell it to do, not what you want it to do.');
  46. INSERT INTO "Fortune" (id, message) VALUES (6, 'Emacs is a nice operating system, but I prefer UNIX. — Tom Christaensen');
  47. INSERT INTO "Fortune" (id, message) VALUES (7, 'Any program that runs right is obsolete.');
  48. INSERT INTO "Fortune" (id, message) VALUES (8, 'A list is only as strong as its weakest link. — Donald Knuth');
  49. INSERT INTO "Fortune" (id, message) VALUES (9, 'Feature: A bug with seniority.');
  50. INSERT INTO "Fortune" (id, message) VALUES (10, 'Computers make very fast, very accurate mistakes.');
  51. INSERT INTO "Fortune" (id, message) VALUES (11, '<script>alert("This should not be displayed in a browser alert box.");</script>');
  52. INSERT INTO "Fortune" (id, message) VALUES (12, 'フレームワークのベンチマーク');