Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Insertion dans utilisateurManager
- INSERT INTO utilisateur (Login) VALUES ('" & _utilisateur.Login & "')
- -- Insertion dans PosteManager
- INSERT INTO poste (nom, mac, dateCreation) VALUES ('" & _Poste.Nom & "','" & _Poste.Mac & "','" & _Poste.DateCreation & "')
- -- Insertion dans ProduitManager
- INSERT INTO produit (nom) VALUES ('" & _Produit.Nom & "')
- -- Insertion dans LicenceManager la ou se trouvent les clés étrangères
- 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