voilà j'ai 2 tables définies de la manière suivante dans ma base de données:
Je voudrais savoir comment accèder aux données "nom_support" de la table support dont le nom_fraction de la table fraction_analysee vaut "eau" ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49 /*==============================================================*/ /* Table : SUPPORT */ /*==============================================================*/ create table SUPPORT ( CODE_SUPPORT INT4 not null, NOM_SUPPORT VARCHAR(40) not null, NOM_INTERNATIONAL VARCHAR(255) not null, constraint PK_SUPPORT primary key (CODE_SUPPORT) ); /*==============================================================*/ /* Table : FRACTION_ANALYSEE */ /*==============================================================*/ create table FRACTION_ANALYSEE ( CODE_FRACTION INT4 not null, CODE_SUPPORT INT4 not null, NOM_FRACTION VARCHAR(50) not null, NOM_INTERNATIONAL VARCHAR(255) not null, constraint PK_FRACTION_ANALYSEE primary key (CODE_FRACTION), constraint FK_FRACTION_FRACTION__SUPPORT foreign key (CODE_SUPPORT) references SUPPORT (CODE_SUPPORT) on delete restrict on update restrict );
Merci.
Partager