SQL*Plus User's Guide and Reference Release 9.0.1 Part Number A88827-02 |
|
Accessing SQL Databases, 5 of 5
You can copy data from one table to another in a single database (local or remote). To copy between tables in your local database, specify your own username and password and the service name for your local database in either a FROM or a TO clause (omit the other clause):
COPY FROM HR/HR@MYDATABASE - INSERT EMPLOYEE_COPY2 - USING SELECT * FROM EMPLOYEE_COPY
To copy between tables on a remote database, include the same username, password, and service name in the FROM and TO clauses:
COPY FROM HR/HR@BOSTONDB - TO HR/HR@BOSTONDB - INSERT EMPLOYEE_COPY2 - USING SELECT * FROM EMPLOYEE_COPY
|
Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|