From a4560ed690d1cac91067ec7255227916fd553d16 Mon Sep 17 00:00:00 2001 From: Alexis LAURENT Date: Thu, 17 Nov 2022 11:05:02 +0100 Subject: [PATCH] =?UTF-8?q?Cr=C3=A9ation=20table=20r=C3=A9servation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SAEBDD.sql | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/SAEBDD.sql b/SAEBDD.sql index dfea767..970489c 100644 --- a/SAEBDD.sql +++ b/SAEBDD.sql @@ -1,2 +1,9 @@ DROP TABLE Voiture, Types, Client, Réservartion, Stock; +CREATE TABLE Réservartion ( + + n°permis numeric(12) CONSTRAINT CPRéservation PRIMARY KEY, + DateRes date NOT NULL CHECK (calories > 0), + PRIMARY KEY (nom) + +); \ No newline at end of file