Advertisement
pa1007

BDD INSERT

Oct 17th, 2019
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.90 KB | None | 0 0
  1. insert into Serveur values (1, 'Tutus','Peter', 'maitre d''hotel');
  2. insert into Serveur values (2, 'Lilo','Vito', 'serveur g1');
  3. insert into Serveur values (3, 'Don','Carl', 'serveur g2');
  4. insert into Serveur values (4, 'Leo','Jon', 'serveur g1');
  5. insert into Serveur values (5, 'Dean','Geak', 'chef serveur');
  6.  
  7. insert into Plat(idPlat,libellé,numtype,prix) values (1, 'assiette de crudités', 1, 25);
  8. insert into Plat(idPlat,libellé,numtype,prix) values (2, 'tarte de saison', 6, 25);
  9. insert into Plat(idPlat,libellé,numtype,prix) values (3, 'sorbet mirabelle', 6, 35);
  10. insert into Plat(idPlat,libellé,numtype,prix) values (4, 'filet de boeuf', 2, 62);
  11. insert into Plat(idPlat,libellé,numtype,prix) values (5, 'salade verte', 1, 15);
  12. insert into Plat(idPlat,libellé,numtype,prix) values (6, 'chevre chaud', 1, 21);
  13. insert into Plat(idPlat,libellé,numtype,prix) values (7, 'pate lorrain', 1, 25);
  14. insert into Plat(idPlat,libellé,numtype,prix) values (8, 'saumon fumé', 1, 30);
  15. insert into Plat(idPlat,libellé,numtype,prix) values (9, 'entrecote printaniere', 2, 58);
  16. insert into Plat(idPlat,libellé,numtype,prix) values (10, 'gratin dauphinois', 4, 42);
  17. insert into Plat(idPlat,libellé,numtype,prix) values (11, 'brochet à l''oseille', 3, 68);
  18. insert into Plat(idPlat,libellé,numtype,prix) values (12, 'gigot d''agneau', 2, 56);
  19. insert into Plat(idPlat,libellé,numtype,prix) values (13, 'crème caramel', 6, 15);
  20. insert into Plat(idPlat,libellé,numtype,prix) values (14, 'munster au cumin', 5, 18);
  21. insert into Plat(idPlat,libellé,numtype,prix) values (15, 'filet de sole au beurre', 3, 70);
  22. insert into Plat(idPlat,libellé,numtype,prix) values (16, 'fois gras de lorraine', 1, 61);
  23.  
  24. insert into `Table` values (10, 4,'SA1');
  25. insert into `Table` values (11, 6,'SA1');
  26. insert into `Table` values (12, 8,'SA1');
  27. insert into `Table` values (13, 4,'SA2');
  28. insert into `Table` values (14, 6,'SA1');
  29. insert into `Table` values (15, 4,'SA1');
  30. insert into `Table` values (16, 4,'SA2');
  31. insert into `Table` values (17, 6,'SA1');
  32. insert into `Table` values (18, 2,'SA1');
  33. insert into `Table` values (19, 4,'SA2');
  34.  
  35. insert into Commande(NumCommande,numTable,dateCommande,NbPersonne,dateEncaissement,modePaiement,MontantTotal) values (100, 10, str_to_date('10/09/2016','%d/%m/%Y'), 2, str_to_date('10/09/2016 20:50', '%d/%m/%Y %H:%i'), 'Carte', 0);
  36. insert into Commande(NumCommande,numTable,dateCommande,NbPersonne,dateEncaissement,modePaiement,MontantTotal) values (101, 11, str_to_date('10/09/2016','%d/%m/%Y'), 4, str_to_date('10/09/2016 21:20', '%d/%m/%Y %H:%i'), 'Chèque', 0);
  37. insert into Commande(NumCommande,numTable,dateCommande,NbPersonne,dateEncaissement,modePaiement,MontantTotal) values (102, 17, str_to_date('10/09/2016','%d/%m/%Y'), 2, str_to_date('10/09/2016 20:55', '%d/%m/%Y %H:%i'), 'Carte', 0);
  38. insert into Commande(NumCommande,numTable,dateCommande,NbPersonne,dateEncaissement,modePaiement,MontantTotal) values (103, 12, str_to_date('10/09/2016','%d/%m/%Y'), 2, str_to_date('10/09/2016 21:10', '%d/%m/%Y %H:%i'), 'Espèces', 0);
  39. insert into Commande(NumCommande,numTable,dateCommande,NbPersonne,dateEncaissement,modePaiement,MontantTotal) values (104, 18, str_to_date('10/09/2016','%d/%m/%Y'), 1, str_to_date('10/09/2016 21:00', '%d/%m/%Y %H:%i'), 'Chèque', 0);
  40. insert into Commande(NumCommande,numTable,dateCommande,NbPersonne,dateEncaissement,modePaiement,MontantTotal) values (105, 10, str_to_date('10/09/2016','%d/%m/%Y'), 2, str_to_date('10/09/2016 20:45', '%d/%m/%Y %H:%i'), 'Carte', 0);
  41. insert into Commande(NumCommande,numTable,dateCommande,NbPersonne,dateEncaissement,modePaiement,MontantTotal) values (106, 14, str_to_date('11/10/2016','%d/%m/%Y'), 2, str_to_date('11/10/2016 22:45', '%d/%m/%Y %H:%i'), 'Carte', 0);
  42.  
  43. insert into affecter values (10,str_to_date('10/09/2016','%d/%m/%Y'), 1);
  44. insert into affecter values (11,str_to_date('10/09/2016','%d/%m/%Y'), 1);
  45. insert into affecter values (12,str_to_date('10/09/2016','%d/%m/%Y'), 1);
  46. insert into affecter values (17,str_to_date('10/09/2016','%d/%m/%Y'), 2);
  47. insert into affecter values (18,str_to_date('10/09/2016','%d/%m/%Y'), 2);
  48. insert into affecter values (15,str_to_date('10/09/2016','%d/%m/%Y'), 3);
  49. insert into affecter values (16,str_to_date('10/09/2016','%d/%m/%Y'), 3);
  50. insert into affecter values (10,str_to_date('11/09/2016','%d/%m/%Y'), 1);
  51.  
  52. insert into contient values (100, 4, 2);
  53. insert into contient values (100, 5, 2);
  54. insert into contient values (100, 13, 1);
  55. insert into contient values (100, 3, 1);
  56. insert into contient values (101, 7, 2);
  57. insert into contient values (101, 16, 2);
  58. insert into contient values (101, 12, 2);
  59. insert into contient values (101, 15, 2);
  60. insert into contient values (101, 2, 2);
  61. insert into contient values (101, 3, 2);
  62. insert into contient values (102, 1, 2);
  63. insert into contient values (102, 10, 2);
  64. insert into contient values (102, 14, 2);
  65. insert into contient values (102, 2, 1);
  66. insert into contient values (102, 3, 1);
  67. insert into contient values (103, 9, 2);
  68. insert into contient values (103, 14, 2);
  69. insert into contient values (103, 2, 1);
  70. insert into contient values (103, 3, 1);
  71. insert into contient values (104, 7, 1);
  72. insert into contient values (104, 11, 1);
  73. insert into contient values (104, 14, 1);
  74. insert into contient values (104, 3, 1);
  75. insert into contient values (105, 3, 2);
  76. insert into contient values (106, 3 ,2);
  77.  
  78. insert into type (idType, nomType) values (1,'Entrée');
  79. insert into type (idType, nomType) values (2,'Viande');
  80. insert into type (idType, nomType) values (3,'Poisson');
  81. insert into type (idType, nomType)values (4,'Plat');
  82. insert into type (idType, nomType)values (5,'Fromage');
  83. insert into type (idType, nomType)values (6,'Dessert');
  84.  
  85. insert into Salle (numSalle, nomSable, NumRestaurant)values ('SA1','paris','R1');
  86. insert into Salle (numSalle, nomSable, NumRestaurant)values ('SA2','London','R1');
  87.  
  88. insert into Restaurant (numRestaurant, Nom) values ('R1','Monde');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement