From 63f6adeccd145f146873dd08e89371c2760e8c7b Mon Sep 17 00:00:00 2001 From: "younes.ouaz" Date: Sun, 12 Oct 2025 19:51:24 +0000 Subject: [PATCH] Ajouter biblio --- biblio | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 biblio diff --git a/biblio b/biblio new file mode 100644 index 0000000..e92c5d8 --- /dev/null +++ b/biblio @@ -0,0 +1,33 @@ +#exo 1 +INSERT INTO Auteurs (nom, prenom) VALUES ('Dumas', 'Alexandre'); +INSERT INTO Auteurs (nom, prenom) VALUES ('J.K', 'Rowling'); + + +INSERT INTO Livres (titre, annee_publication, auteur_id ) VALUES ('Les Trois Mousquetaires', 1844, 15); +INSERT INTO Livres (titre, annee_publication, auteur_id ) VALUES ('L\'Ickabog et Jack et la grande aventure du cochon de Noël', 2020, 3); + + +#exo2 + +SELECT * FROM Livres WHERE annee_publication < 1900; + + +SELECT * FROM Auteurs WHERE prenom = 'Victor0'; + +SELECT * FROM Livres WHERE titre LIKE '%PARIS%'; + + +#exo3 + +DELETE FROM Livres WHERE titre = 'Notre-Dame de Paris'; + +SELECT * FROM Livres WHERE titre = 'Notre-Dame de Paris'; + + +#exo4 + +SELECT * FROM Livres WHERE nom = 'Hugo'; + +SELECT * FROM Livres WHERE annee_publication < 1900 AND nom = 'Hugo'; + +