diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..0f8274c Binary files /dev/null and b/.DS_Store differ diff --git a/Code/TD1.db b/Code/TD1.db new file mode 100644 index 0000000..5379f65 Binary files /dev/null and b/Code/TD1.db differ diff --git a/Code/TD1.db-journal b/Code/TD1.db-journal new file mode 100644 index 0000000..7f8f33d Binary files /dev/null and b/Code/TD1.db-journal differ diff --git a/Code/TD1.sql b/Code/TD1.sql new file mode 100644 index 0000000..660b004 --- /dev/null +++ b/Code/TD1.sql @@ -0,0 +1,33 @@ +BEGIN TRANSACTION; +CREATE TABLE IF NOT EXISTS "Personne" ( + "NumPersonne" INTEGER, + "NomPersonne" VARCHAR(50), + PRIMARY KEY("NumPersonne") +); +CREATE TABLE IF NOT EXISTS "Fournisseur" ( + "numF" INTEGER, + "nomF" VARCHAR(20), + "CatF" INTEGER, + "VilF" VARCHAR(15), + PRIMARY KEY("numF") +); +CREATE TABLE IF NOT EXISTS "Piece" ( + "numP" INTEGER, + "nomP" VARCHAR(20), + "clrP" VARCHER(20), + "PdsP" INTEGER, + PRIMARY KEY("numP") +); +CREATE TABLE IF NOT EXISTS "Livraison" ( + "numF" INTEGER, + "numP" INTEGER, + "Qte" INTEGER, + PRIMARY KEY("numF","numP"), + FOREIGN KEY("numP") REFERENCES "Piece", + FOREIGN KEY("numF") REFERENCES "Fournisseur" +); +INSERT INTO "Personne" VALUES (1,'Martin'); +INSERT INTO "Fournisseur" VALUES (32,'Thales',2,'Paris'); +INSERT INTO "Piece" VALUES (25,'engrenage','gris',300); +INSERT INTO "Livraison" VALUES (32,25,40); +COMMIT; diff --git a/Notes-de-Cours/Notes2.pdf b/Notes-de-Cours/Notes2.pdf new file mode 100644 index 0000000..5934764 Binary files /dev/null and b/Notes-de-Cours/Notes2.pdf differ