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
|
create table A (
id int NOT NULL,
name char(10)
);
create table B (
idB int NOT NULL,
idA int NOT NULL,
nameB char(10)
);
create table C (
idC int NOT NULL,
idB int NOT NULL,
nameC char(10)
);
insert into A VALUES(1 ,'bidon1');
insert into A VALUES(2 ,'bidon2');
insert into A VALUES(3 ,'bidon3');
insert into A VALUES(4 ,'bidon4');
insert into B VALUES(100,1,'1-100');
insert into B VALUES(101,1,'1-101');
insert into B VALUES(130,3,'3-130');
insert into B VALUES(131,3,'3-131');
insert into B VALUES(132,3,'3-132');
insert into B VALUES(444,4,'4-444');
insert into C VALUES(1000,100,'1-100-1000');
insert into C VALUES(1001,100,'1-100-1001');
insert into C VALUES(1002,101,'1-101-1002'); |
Partager