COPY
COPY {[FROMusername
[/password
]@database_spec
] | TOusername
[/password
]@database_spec
] | [FROMusername
[/password
]@database_spec
TOusername
[/password
]@database_spec
} {APPEND | CREATE | INSERT | REPLACE}destination_table
[(column
[,column
...])] USINGquery)
Copies data returned from a query to another table in either the local or remote database.
The name of the user account (schema) from which and to which data will be copied.
The password associated with the specified user account.
The SQL*Net connect string for the database being connected to.
Specifies the username, password, and database_spec for the database to which data is to be copied. If TO is omitted, the account SQL*Plus is currently logged into will be used.
Specifies the username, password, and database_spec for the database from which data is to be copied. If FROM is omitted, the account SQL*Plus is currently logged into will be used.
Causes rows to be inserted into destination_table if it exists; otherwise, destination_table is created.
Creates destination_table before inserting rows. If destination_table already exists, an error results.
Causes rows to be inserted into destination_table. If destination_table does not exist, an error results.
Replaces the destination_table with the results of the query. If destination_table does not exist, it will be created.
The name of the table to be created or the table to which rows are being added.
The name of a column in destination_table in which data will be inserted. If columns are specified, the number of columns must match those being returned by the query.
Any valid SQL SELECT statement that returns the rows and columns that COPY will copy.