Advertisement
daniele2013

Popolamento2

Mar 26th, 2014
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PL/SQL 13.74 KB | None | 0 0
  1. CREATE PROCEDURE Popolamento_2
  2.     IS
  3.         BEGIN
  4.             --Preferiti(UtenteID, FileID, DataCreazionee)
  5.             INSERT INTO Preferiti VALUES (1, 2, SYSDATE);
  6.             INSERT INTO Preferiti VALUES (1, 4, SYSDATE);
  7.             INSERT INTO Preferiti VALUES (1, 16, SYSDATE);
  8.             INSERT INTO Preferiti VALUES (1, 19, SYSDATE);
  9.             INSERT INTO Preferiti VALUES (1, 23, SYSDATE);
  10.             INSERT INTO Preferiti VALUES (1, 24, SYSDATE);
  11.             INSERT INTO Preferiti VALUES (2, 2, SYSDATE);
  12.             INSERT INTO Preferiti VALUES (2, 5, SYSDATE);
  13.             INSERT INTO Preferiti VALUES (2, 6, SYSDATE);
  14.             INSERT INTO Preferiti VALUES (2, 7, SYSDATE);
  15.             INSERT INTO Preferiti VALUES (2, 9, SYSDATE);
  16.             INSERT INTO Preferiti VALUES (2, 12, SYSDATE);
  17.             INSERT INTO Preferiti VALUES (2, 16, SYSDATE);
  18.             INSERT INTO Preferiti VALUES (2, 17, SYSDATE);
  19.             INSERT INTO Preferiti VALUES (2, 19, SYSDATE);
  20.             INSERT INTO Preferiti VALUES (2, 20, SYSDATE);
  21.             INSERT INTO Preferiti VALUES (2, 21, SYSDATE);
  22.             INSERT INTO Preferiti VALUES (2, 22, SYSDATE);
  23.             INSERT INTO Preferiti VALUES (2, 23, SYSDATE);
  24.             INSERT INTO Preferiti VALUES (2, 24, SYSDATE);
  25.             INSERT INTO Preferiti VALUES (3, 1, SYSDATE);
  26.             INSERT INTO Preferiti VALUES (3, 2, SYSDATE);
  27.             INSERT INTO Preferiti VALUES (3, 9, SYSDATE);
  28.             INSERT INTO Preferiti VALUES (3, 10, SYSDATE);
  29.             INSERT INTO Preferiti VALUES (3, 11, SYSDATE);
  30.             INSERT INTO Preferiti VALUES (3, 14, SYSDATE);
  31.             INSERT INTO Preferiti VALUES (3, 22, SYSDATE);
  32.             INSERT INTO Preferiti VALUES (4, 7, SYSDATE);
  33.             INSERT INTO Preferiti VALUES (4, 8, SYSDATE);
  34.             INSERT INTO Preferiti VALUES (4, 10, SYSDATE);
  35.             INSERT INTO Preferiti VALUES (4, 11, SYSDATE);
  36.             INSERT INTO Preferiti VALUES (4, 12, SYSDATE);
  37.             INSERT INTO Preferiti VALUES (5, 2, SYSDATE);
  38.             INSERT INTO Preferiti VALUES (5, 3, SYSDATE);
  39.             INSERT INTO Preferiti VALUES (5, 4, SYSDATE);
  40.             INSERT INTO Preferiti VALUES (5, 9, SYSDATE);
  41.             INSERT INTO Preferiti VALUES (5, 16, SYSDATE);
  42.             INSERT INTO Preferiti VALUES (5, 17, SYSDATE);
  43.             INSERT INTO Preferiti VALUES (5, 21, SYSDATE);
  44.             INSERT INTO Preferiti VALUES (5, 22, SYSDATE);
  45.             INSERT INTO Preferiti VALUES (5, 24, SYSDATE);
  46.             INSERT INTO Preferiti VALUES (6, 2, SYSDATE);
  47.             INSERT INTO Preferiti VALUES (6, 4, SYSDATE);
  48.             INSERT INTO Preferiti VALUES (6, 7, SYSDATE);
  49.             INSERT INTO Preferiti VALUES (6, 12, SYSDATE);
  50.             INSERT INTO Preferiti VALUES (6, 13, SYSDATE);
  51.             INSERT INTO Preferiti VALUES (6, 20, SYSDATE);
  52.             INSERT INTO Preferiti VALUES (6, 24, SYSDATE);
  53.             INSERT INTO Preferiti VALUES (7, 1, SYSDATE);
  54.             INSERT INTO Preferiti VALUES (7, 2, SYSDATE);
  55.             INSERT INTO Preferiti VALUES (7, 3, SYSDATE);
  56.             INSERT INTO Preferiti VALUES (7, 7, SYSDATE);
  57.             INSERT INTO Preferiti VALUES (7, 9, SYSDATE);
  58.             INSERT INTO Preferiti VALUES (7, 10, SYSDATE);
  59.             INSERT INTO Preferiti VALUES (7, 13, SYSDATE);
  60.             INSERT INTO Preferiti VALUES (7, 15, SYSDATE);
  61.             INSERT INTO Preferiti VALUES (7, 19, SYSDATE);
  62.             INSERT INTO Preferiti VALUES (7, 22, SYSDATE);
  63.             INSERT INTO Preferiti VALUES (7, 23, SYSDATE);
  64.             INSERT INTO Preferiti VALUES (8, 2, SYSDATE);
  65.             INSERT INTO Preferiti VALUES (8, 5, SYSDATE);
  66.             INSERT INTO Preferiti VALUES (8, 7, SYSDATE);
  67.             INSERT INTO Preferiti VALUES (8, 10, SYSDATE);
  68.             INSERT INTO Preferiti VALUES (8, 15, SYSDATE);
  69.             INSERT INTO Preferiti VALUES (8, 16, SYSDATE);
  70.             INSERT INTO Preferiti VALUES (8, 17, SYSDATE);
  71.             INSERT INTO Preferiti VALUES (8, 21, SYSDATE);
  72.             INSERT INTO Preferiti VALUES (9, 1, SYSDATE);
  73.             INSERT INTO Preferiti VALUES (9, 3, SYSDATE);
  74.             INSERT INTO Preferiti VALUES (9, 4, SYSDATE);
  75.             INSERT INTO Preferiti VALUES (9, 7, SYSDATE);
  76.             INSERT INTO Preferiti VALUES (9, 8, SYSDATE);
  77.             INSERT INTO Preferiti VALUES (9, 11, SYSDATE);
  78.             INSERT INTO Preferiti VALUES (9, 12, SYSDATE);
  79.             INSERT INTO Preferiti VALUES (9, 16, SYSDATE);
  80.             INSERT INTO Preferiti VALUES (9, 18, SYSDATE);
  81.             INSERT INTO Preferiti VALUES (9, 19, SYSDATE);
  82.             INSERT INTO Preferiti VALUES (9, 23, SYSDATE);
  83.  
  84.             --Membership(UtenteID, GruppoID, DataCreazione)
  85.             INSERT INTO Membership VALUES (1, 2, SYSDATE);
  86.             INSERT INTO Membership VALUES (1, 4, SYSDATE);
  87.             INSERT INTO Membership VALUES (1, 5, SYSDATE);
  88.             INSERT INTO Membership VALUES (2, 2, SYSDATE);
  89.             INSERT INTO Membership VALUES (2, 3, SYSDATE);
  90.             INSERT INTO Membership VALUES (3, 1, SYSDATE);
  91.             INSERT INTO Membership VALUES (3, 3, SYSDATE);
  92.             INSERT INTO Membership VALUES (3, 5, SYSDATE);
  93.             INSERT INTO Membership VALUES (4, 2, SYSDATE);
  94.             INSERT INTO Membership VALUES (4, 1, SYSDATE);
  95.             INSERT INTO Membership VALUES (4, 3, SYSDATE);
  96.             INSERT INTO Membership VALUES (4, 4, SYSDATE);
  97.             INSERT INTO Membership VALUES (4, 5, SYSDATE);
  98.             INSERT INTO Membership VALUES (5, 1, SYSDATE);
  99.             INSERT INTO Membership VALUES (5, 2, SYSDATE);
  100.             INSERT INTO Membership VALUES (5, 4, SYSDATE);
  101.             INSERT INTO Membership VALUES (6, 2, SYSDATE);
  102.             INSERT INTO Membership VALUES (6, 3, SYSDATE);
  103.             INSERT INTO Membership VALUES (6, 4, SYSDATE);
  104.             INSERT INTO Membership VALUES (6, 5, SYSDATE);
  105.             INSERT INTO Membership VALUES (7, 2, SYSDATE);
  106.             INSERT INTO Membership VALUES (7, 1, SYSDATE);
  107.             INSERT INTO Membership VALUES (7, 2, SYSDATE);
  108.             INSERT INTO Membership VALUES (7, 3, SYSDATE);
  109.             INSERT INTO Membership VALUES (7, 5, SYSDATE);
  110.             INSERT INTO Membership VALUES (8, 1, SYSDATE);
  111.             INSERT INTO Membership VALUES (8, 3, SYSDATE);
  112.             INSERT INTO Membership VALUES (8, 4, SYSDATE);
  113.             INSERT INTO Membership VALUES (9, 2, SYSDATE);
  114.            
  115.             --Tag(ID, Testo)
  116.             INSERT INTO Tag VALUES (1, 'natura');
  117.             INSERT INTO Tag VALUES (2, 'animali');
  118.             INSERT INTO Tag VALUES (3, 'gioco');
  119.             INSERT INTO Tag VALUES (4, 'spasso');
  120.             INSERT INTO Tag VALUES (5, 'amore');
  121.             INSERT INTO Tag VALUES (6, 'arte');
  122.            
  123.             --TagsFile(TagID, FileID)
  124.             INSERT INTO TagsFile VALUES (1, 3);
  125.             INSERT INTO TagsFile VALUES (1, 4);
  126.             INSERT INTO TagsFile VALUES (1, 13);
  127.             INSERT INTO TagsFile VALUES (1, 14);
  128.             INSERT INTO TagsFile VALUES (1, 21);
  129.             INSERT INTO TagsFile VALUES (1, 22);
  130.             INSERT INTO TagsFile VALUES (1, 24);
  131.             INSERT INTO TagsFile VALUES (2, 3);
  132.             INSERT INTO TagsFile VALUES (2, 4);
  133.             INSERT INTO TagsFile VALUES (3, 9);
  134.             INSERT INTO TagsFile VALUES (3, 10);
  135.             INSERT INTO TagsFile VALUES (3, 14);
  136.             INSERT INTO TagsFile VALUES (3, 19);
  137.             INSERT INTO TagsFile VALUES (3, 20);
  138.             INSERT INTO TagsFile VALUES (4, 1);
  139.             INSERT INTO TagsFile VALUES (4, 2);
  140.             INSERT INTO TagsFile VALUES (4, 5);
  141.             INSERT INTO TagsFile VALUES (4, 6);
  142.             INSERT INTO TagsFile VALUES (4, 7);
  143.             INSERT INTO TagsFile VALUES (4, 8);
  144.             INSERT INTO TagsFile VALUES (4, 9);
  145.             INSERT INTO TagsFile VALUES (4, 10);
  146.             INSERT INTO TagsFile VALUES (4, 11);
  147.             INSERT INTO TagsFile VALUES (4, 12);
  148.             INSERT INTO TagsFile VALUES (4, 14);
  149.             INSERT INTO TagsFile VALUES (4, 16);
  150.             INSERT INTO TagsFile VALUES (4, 17);
  151.             INSERT INTO TagsFile VALUES (4, 18);
  152.             INSERT INTO TagsFile VALUES (4, 19);
  153.             INSERT INTO TagsFile VALUES (4, 20);
  154.             INSERT INTO TagsFile VALUES (5, 11);
  155.             INSERT INTO TagsFile VALUES (5, 12);
  156.             INSERT INTO TagsFile VALUES (5, 15);
  157.             INSERT INTO TagsFile VALUES (5, 16);
  158.             INSERT INTO TagsFile VALUES (6, 5);
  159.             INSERT INTO TagsFile VALUES (6, 8);
  160.             INSERT INTO TagsFile VALUES (6, 14);
  161.             INSERT INTO TagsFile VALUES (6, 21);
  162.             INSERT INTO TagsFile VALUES (6, 22);
  163.             INSERT INTO TagsFile VALUES (6, 23);
  164.             INSERT INTO TagsFile VALUES (6, 24);
  165.            
  166.             --Visualizza(UtenteID, DiscussioneID, FileID, Data)
  167.             INSERT INTO Visualizza VALUES (1, NULL, 1, SYSDATE);
  168.             INSERT INTO Visualizza VALUES (1, NULL, 2, SYSDATE);
  169.             INSERT INTO Visualizza VALUES (1, NULL, 4, SYSDATE);
  170.             INSERT INTO Visualizza VALUES (1, NULL, 16, SYSDATE);
  171.             INSERT INTO Visualizza VALUES (1, NULL, 19, SYSDATE);
  172.             INSERT INTO Visualizza VALUES (1, NULL, 23, SYSDATE);
  173.             INSERT INTO Visualizza VALUES (1, NULL, 24, SYSDATE);
  174.             INSERT INTO Visualizza VALUES (1, 3, NULL, SYSDATE);
  175.             INSERT INTO Visualizza VALUES (2, NULL, 2, SYSDATE);
  176.             INSERT INTO Visualizza VALUES (2, NULL, 3, SYSDATE);
  177.             INSERT INTO Visualizza VALUES (2, NULL, 4, SYSDATE);
  178.             INSERT INTO Visualizza VALUES (2, NULL, 5, SYSDATE);
  179.             INSERT INTO Visualizza VALUES (2, NULL, 6, SYSDATE);
  180.             INSERT INTO Visualizza VALUES (2, NULL, 7, SYSDATE);
  181.             INSERT INTO Visualizza VALUES (2, NULL, 9, SYSDATE);
  182.             INSERT INTO Visualizza VALUES (2, NULL, 12, SYSDATE);
  183.             INSERT INTO Visualizza VALUES (2, NULL, 16, SYSDATE);
  184.             INSERT INTO Visualizza VALUES (2, NULL, 17, SYSDATE);
  185.             INSERT INTO Visualizza VALUES (2, NULL, 19, SYSDATE);
  186.             INSERT INTO Visualizza VALUES (2, NULL, 20, SYSDATE);
  187.             INSERT INTO Visualizza VALUES (2, NULL, 21, SYSDATE);
  188.             INSERT INTO Visualizza VALUES (2, NULL, 22, SYSDATE);
  189.             INSERT INTO Visualizza VALUES (2, NULL, 23, SYSDATE);
  190.             INSERT INTO Visualizza VALUES (2, NULL, 24, SYSDATE);
  191.             INSERT INTO Visualizza VALUES (2, 2, NULL, SYSDATE);
  192.             INSERT INTO Visualizza VALUES (3, NULL, 1, SYSDATE);
  193.             INSERT INTO Visualizza VALUES (3, NULL, 2, SYSDATE);
  194.             INSERT INTO Visualizza VALUES (3, NULL, 5, SYSDATE);
  195.             INSERT INTO Visualizza VALUES (3, NULL, 6, SYSDATE);
  196.             INSERT INTO Visualizza VALUES (3, NULL, 9, SYSDATE);
  197.             INSERT INTO Visualizza VALUES (3, NULL, 10, SYSDATE);
  198.             INSERT INTO Visualizza VALUES (3, NULL, 11, SYSDATE);
  199.             INSERT INTO Visualizza VALUES (3, NULL, 14, SYSDATE);
  200.             INSERT INTO Visualizza VALUES (3, NULL, 21, SYSDATE);
  201.             INSERT INTO Visualizza VALUES (3, NULL, 22, SYSDATE);
  202.             INSERT INTO Visualizza VALUES (3, 2, NULL, SYSDATE);
  203.             INSERT INTO Visualizza VALUES (4, NULL, 7, SYSDATE);
  204.             INSERT INTO Visualizza VALUES (4, NULL, 8, SYSDATE);
  205.             INSERT INTO Visualizza VALUES (4, NULL, 10, SYSDATE);
  206.             INSERT INTO Visualizza VALUES (4, NULL, 11, SYSDATE);
  207.             INSERT INTO Visualizza VALUES (4, NULL, 12, SYSDATE);
  208.             INSERT INTO Visualizza VALUES (4, NULL, 15, SYSDATE);
  209.             INSERT INTO Visualizza VALUES (4, NULL, 24, SYSDATE);
  210.             INSERT INTO Visualizza VALUES (4, 1, NULL, SYSDATE);
  211.             INSERT INTO Visualizza VALUES (5, NULL, 2, SYSDATE);
  212.             INSERT INTO Visualizza VALUES (5, NULL, 3, SYSDATE);
  213.             INSERT INTO Visualizza VALUES (5, NULL, 4, SYSDATE);
  214.             INSERT INTO Visualizza VALUES (5, NULL, 9, SYSDATE);
  215.             INSERT INTO Visualizza VALUES (5, NULL, 10, SYSDATE);
  216.             INSERT INTO Visualizza VALUES (5, NULL, 11, SYSDATE);
  217.             INSERT INTO Visualizza VALUES (5, NULL, 12, SYSDATE);
  218.             INSERT INTO Visualizza VALUES (5, NULL, 13, SYSDATE);
  219.             INSERT INTO Visualizza VALUES (5, NULL, 16, SYSDATE);
  220.             INSERT INTO Visualizza VALUES (5, NULL, 17, SYSDATE);
  221.             INSERT INTO Visualizza VALUES (5, NULL, 21, SYSDATE);
  222.             INSERT INTO Visualizza VALUES (5, NULL, 22, SYSDATE);
  223.             INSERT INTO Visualizza VALUES (5, NULL, 24, SYSDATE);
  224.             INSERT INTO Visualizza VALUES (5, 1, NULL, SYSDATE);
  225.             INSERT INTO Visualizza VALUES (6, NULL, 2, SYSDATE);
  226.             INSERT INTO Visualizza VALUES (6, NULL, 4, SYSDATE);
  227.             INSERT INTO Visualizza VALUES (6, NULL, 5, SYSDATE);
  228.             INSERT INTO Visualizza VALUES (6, NULL, 7, SYSDATE);
  229.             INSERT INTO Visualizza VALUES (6, NULL, 12, SYSDATE);
  230.             INSERT INTO Visualizza VALUES (6, NULL, 13, SYSDATE);
  231.             INSERT INTO Visualizza VALUES (6, NULL, 14, SYSDATE);
  232.             INSERT INTO Visualizza VALUES (6, NULL, 15, SYSDATE);
  233.             INSERT INTO Visualizza VALUES (6, NULL, 16, SYSDATE);
  234.             INSERT INTO Visualizza VALUES (6, NULL, 20, SYSDATE);
  235.             INSERT INTO Visualizza VALUES (6, NULL, 24, SYSDATE);
  236.             INSERT INTO Visualizza VALUES (6, 4, NULL, SYSDATE);
  237.             INSERT INTO Visualizza VALUES (7, NULL, 1, SYSDATE);
  238.             INSERT INTO Visualizza VALUES (7, NULL, 2, SYSDATE);
  239.             INSERT INTO Visualizza VALUES (7, NULL, 3, SYSDATE);
  240.             INSERT INTO Visualizza VALUES (7, NULL, 7, SYSDATE);
  241.             INSERT INTO Visualizza VALUES (7, NULL, 9, SYSDATE);
  242.             INSERT INTO Visualizza VALUES (7, NULL, 10, SYSDATE);
  243.             INSERT INTO Visualizza VALUES (7, NULL, 13, SYSDATE);
  244.             INSERT INTO Visualizza VALUES (7, NULL, 15, SYSDATE);
  245.             INSERT INTO Visualizza VALUES (7, NULL, 17, SYSDATE);
  246.             INSERT INTO Visualizza VALUES (7, NULL, 18, SYSDATE);
  247.             INSERT INTO Visualizza VALUES (7, NULL, 19, SYSDATE);
  248.             INSERT INTO Visualizza VALUES (7, NULL, 22, SYSDATE);
  249.             INSERT INTO Visualizza VALUES (7, NULL, 23, SYSDATE);
  250.             INSERT INTO Visualizza VALUES (7, 3, NULL, SYSDATE);
  251.             INSERT INTO Visualizza VALUES (8, NULL, 2, SYSDATE);
  252.             INSERT INTO Visualizza VALUES (8, NULL, 5, SYSDATE);
  253.             INSERT INTO Visualizza VALUES (8, NULL, 7, SYSDATE);
  254.             INSERT INTO Visualizza VALUES (8, NULL, 9, SYSDATE);
  255.             INSERT INTO Visualizza VALUES (8, NULL, 10, SYSDATE);
  256.             INSERT INTO Visualizza VALUES (8, NULL, 15, SYSDATE);
  257.             INSERT INTO Visualizza VALUES (8, NULL, 16, SYSDATE);
  258.             INSERT INTO Visualizza VALUES (8, NULL, 17, SYSDATE);
  259.             INSERT INTO Visualizza VALUES (8, NULL, 19, SYSDATE);
  260.             INSERT INTO Visualizza VALUES (8, NULL, 20, SYSDATE);
  261.             INSERT INTO Visualizza VALUES (8, NULL, 21, SYSDATE);
  262.             INSERT INTO Visualizza VALUES (8, 4, NULL, SYSDATE);
  263.             INSERT INTO Visualizza VALUES (9, NULL, 1, SYSDATE);
  264.             INSERT INTO Visualizza VALUES (9, NULL, 3, SYSDATE);
  265.             INSERT INTO Visualizza VALUES (9, NULL, 4, SYSDATE);
  266.             INSERT INTO Visualizza VALUES (9, NULL, 7, SYSDATE);
  267.             INSERT INTO Visualizza VALUES (9, NULL, 8, SYSDATE);
  268.             INSERT INTO Visualizza VALUES (9, NULL, 11, SYSDATE);
  269.             INSERT INTO Visualizza VALUES (9, NULL, 12, SYSDATE);
  270.             INSERT INTO Visualizza VALUES (9, NULL, 16, SYSDATE);
  271.             INSERT INTO Visualizza VALUES (9, NULL, 18, SYSDATE);
  272.             INSERT INTO Visualizza VALUES (9, NULL, 19, SYSDATE);
  273.             INSERT INTO Visualizza VALUES (9, NULL, 21, SYSDATE);
  274.             INSERT INTO Visualizza VALUES (9, NULL, 22, SYSDATE);
  275.             INSERT INTO Visualizza VALUES (9, NULL, 23, SYSDATE);
  276.             INSERT INTO Visualizza VALUES (9, NULL, 24, SYSDATE);
  277.             INSERT INTO Visualizza VALUES (9, 2, NULL, SYSDATE);
  278.             INSERT INTO Visualizza VALUES (9, 3, NULL, SYSDATE);
  279.         END;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement