Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
be-sgbd-library
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Olivier Hugo
be-sgbd-library
Commits
2c10b43d
Unverified
Commit
2c10b43d
authored
Nov 15, 2023
by
Jangberry (Nomad-Debian)
Browse files
Options
Downloads
Patches
Plain Diff
Compatibilité mariadb
parent
73cc907c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
BE_SGBD_LIBRARY.ddl
+7
-20
7 additions, 20 deletions
BE_SGBD_LIBRARY.ddl
MOD BD 2022-23 projets.pdf
+0
-0
0 additions, 0 deletions
MOD BD 2022-23 projets.pdf
with
7 additions
and
20 deletions
BE_SGBD_LIBRARY.ddl
+
7
−
20
View file @
2c10b43d
...
...
@@ -13,6 +13,7 @@
-- ________________
create database MAIN;
USE MAIN;
-- DBSpace Section
...
...
@@ -175,17 +176,11 @@ alter table interesse_par add constraint FKint_MOT
foreign key (mot)
references MOT_CLE;
alter table LIVRE add constraint ID_LIVRE_CHK
check(exists(select * from PUBLICATION
where PUBLICATION.ISBN = ISBN));
alter table LIVRE add constraint ID_LIVRE_CHK
check(exists(select * from ecrit_par
where ecrit_par.ISBN = ISBN));
alter table PERIODIQUE add constraint ID_PERIODIQUE_CHK
check(exists(select * from PUBLICATION
where PUBLICATION.ID_PER = ID_PER));
alter table propose add constraint FKpro_UTI_FK
foreign key (email)
...
...
@@ -199,10 +194,6 @@ alter table PUBLICATION add constraint FKou_est_un_FK
foreign key (ID_PER)
references PERIODIQUE;
alter table PUBLICATION add constraint FKou_est_un_CHK
check((ID_PER not null)
or (ID_PER is null));
alter table PUBLICATION add constraint FKou_encore_est_un_FK
foreign key (ID_RAP)
references RAPPORT;
...
...
@@ -211,13 +202,9 @@ alter table PUBLICATION add constraint FKest_un_FK
foreign key (ISBN)
references LIVRE;
alter table RAPPORT add constraint ID_RAPPORT_CHK
check(exists(select * from PUBLICATION
where PUBLICATION.ID_RAP = ID_RAP));
alter table RAPPORT add constraint ID_RAPPORT_CHK
check(exists(select * from redige_par
where redige_par.ID_RAP = ID_RAP));
alter table redige_par add constraint FKred_RAP
foreign key (ID_RAP)
...
...
@@ -315,7 +302,7 @@ create unique index ID_RAPPORT_IND
on RAPPORT (ID_RAP);
create unique index ID_redige_par_IND
on redige_par (
id
, nom);
on redige_par (
ID_RAP
, nom);
create index FKred_Aut_IND
on redige_par (nom);
...
...
This diff is collapsed.
Click to expand it.
MOD BD 2022-23 projets.pdf
0 → 100644
+
0
−
0
View file @
2c10b43d
File added
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment