Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying data from a database to another
Message
 
 
À
10/08/2001 16:41:46
Sergio Ortiz
Tek Services Group, Llc
Hollywood, Floride, États-Unis
Information générale
Forum:
Oracle
Catégorie:
Autre
Divers
Thread ID:
00542529
Message ID:
00543131
Vues:
16
>Hello everyone,
>
>I need to copy a content of a table to another table in a different database.
>I have never done it and if anybody knows I would appreciated if can guide me to accomplish it.
>Both tables have the same data structure.
>
>Thanks,
>Sergio

Are you copying the rows to another table in the same Oracle instance? What I mean is this in the same Oracle instance? If so, the TO user needs SELECT privilege on the table of the FROM user. Then you can issue the following SQL:

INSERT INTO USER2.MYTABLE (SELECT * FROM USER1.MYTABLE)

If the USER2 table is empty you can drop it, and create the table to guarantee exact duplication:

CREATE TABLE USER2.MYTABLE AS SELECT * FROM USER1.MYTABLE
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform