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
| SQL> create table test1 (n number, titre varchar2(30));
Table created.
SQL> create table test2 (n number, valeur varchar2(30));
Table created.
SQL> insert into test1 values (1, 'titre1');
1 row created.
SQL> insert into test1 values (2, 'titre2');
1 row created.
SQL> insert into test2 values (2, 'valeur2');
1 row created.
SQL> insert into test2 values (3, 'valeur3');
1 row created.
SQL> select test1.*, test2.*
2 from test1 full outer join test2
3 on test1.n = test2.n
4 order by test1.n;
N TITRE N VALEUR
--------- ------------------------------ --------- ------------------------------
1 titre1
2 titre2 2 valeur2
3 valeur3
3 rows selected. |
Partager