From 8fb0ae7fb1ac9b4d89c4c769ea30211d5e51e0c1 Mon Sep 17 00:00:00 2001 From: "Johnny.Ratton" Date: Thu, 17 Nov 2022 11:04:03 +0100 Subject: [PATCH] =?UTF-8?q?Cr=C3=A9ation=20Table=20Voiture?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SAEBDD.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SAEBDD.sql b/SAEBDD.sql index dfea767..14cf345 100644 --- a/SAEBDD.sql +++ b/SAEBDD.sql @@ -1,2 +1,5 @@ DROP TABLE Voiture, Types, Client, Réservartion, Stock; +CREATE TABLE Voiture( + immatriculation PRIMARY KEY CONSTRAINT Problème_Immatriculation CHECK(immatriculation LIKE '(A-Z)(A-Z)(0-9)(0-9)(0-9)(A-Z)(A-Z)') +) \ No newline at end of file