Commit 7ef5b615 authored by Evenson Jeunesse's avatar Evenson Jeunesse
Browse files

Update SQL.sql

parent c452ce15
......@@ -12,6 +12,7 @@ FOREIGN KEY (classe) REFERENCES Classes(nom)
);
CREATE TABLE Clients(
id INTEGER,
telephone INTEGER NOT NULL,
......@@ -20,8 +21,7 @@ prenom VARCHAR(50) NOT NULL,
date_naissance DATE NOT NULL,
adresse VARCHAR(255) NOT NULL,
PRIMARY KEY (id),
CHECK (telephone > 100000000 AND telephone < 999999999),
CHECK (date_naissance BETWEEN DATE('1900-01-01') AND CURRENT_DATE)
CHECK (telephone > 100000000 AND telephone < 999999999)
);
......@@ -36,8 +36,7 @@ traitement XMLType,
PRIMARY KEY (id),
FOREIGN KEY (espece) REFERENCES Especes(nom),
CHECK (dernierPoids > 0),
CHECK (derniereTaille > 0),
CHECK (date_naissance > 1900)
CHECK (derniereTaille > 0)
);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment