| |
|
|
|
create table CLIENT_NEW
(
| NO |
numeric(5,0) |
not null, |
| NOM |
char(30) |
not null, |
| CP |
char(7) |
not null, |
| VILLE |
char(30) |
not null |
)
|
|
create table CLIENT_OLD
(
| NO |
numeric(5,0) |
not null, |
| NOM |
char(30) |
not null, |
| CP |
char(7) |
not null, |
| VILLE |
char(30) |
not null |
)
|
|
Contenu de la table CLIENT_OLD
|
|
NO
|
NOM
|
CP |
VILLEC
|
|
1
|
DURAND
|
76200 |
DIEPPE
|
|
2
|
DUPONT
|
76200 |
DIEPPE
|
|
3
|
ROBERT
|
59800 |
LILLE
|
|
4
|
VILLAIN
|
76100 |
ROUEN
|
|
5
|
ARTHUR
|
14000 |
CAEN
|
|
|
Contenu de la table CLIENT_NEW
|
INSERT INTO CLIENT_NEW (NO,NOM,CP,VILLE)
SELECT NO,NOM,CP,VILLE FROM CLIENT_OLD
|
Le résultat de la requête
dans la table CLIENT_NEW
|
|
NO
|
NOM
|
CP |
VILLEC
|
|
1
|
DURAND
|
76200 |
DIEPPE
|
|
2
|
DUPONT
|
76200 |
DIEPPE
|
|
3
|
ROBERT
|
59800 |
LILLE
|
|
4
|
VILLAIN
|
76100 |
ROUEN
|
|
5
|
ARTHUR
|
14000 |
CAEN
|
|
|