Advertisement
Guest User

Untitled

a guest
May 22nd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.80 KB | None | 0 0
  1. -- Insertion dans utilisateurManager
  2. INSERT INTO utilisateur (Login) VALUES ('" & _utilisateur.Login & "')
  3.  
  4. -- Insertion dans PosteManager
  5. INSERT INTO poste (nom, mac, dateCreation) VALUES ('" & _Poste.Nom & "','" & _Poste.Mac & "','" & _Poste.DateCreation & "')
  6.  
  7. -- Insertion dans ProduitManager
  8. INSERT INTO produit (nom) VALUES ('" & _Produit.Nom & "')
  9.  
  10. -- Insertion dans LicenceManager la ou se trouvent les clés étrangères
  11. INSERT INTO licence (nom, dateDebut, dateFin, id_utilisateur, id_poste, id_produit) VALUES ('" & _Licence.Nom & "','" & _Licence.DateCreation & "','" & _Licence.DateFin & "', (SELECT id FROM utilisateur WHERE Login = '"_utilisateur.Login"' ), (SELECT id FROM poste WHERE nom = '"_poste.nom"' And WHERE mac = '"_poste.mac"'), (SELECT id FROM produit WHERE nom = '"_produit.nom"' ))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement