Imports data from another Vertica database. COPY FROM VERTICA is similar to COPY, but supports only a subset of its parameters.

The source database must be no more than one major release behind the target database.


COPY [[database.]schema-name.]target-table 
    [( target‑columns )]
    FROM VERTICA source‑database.[schema.]source‑table
    [( source‑columns )]
    [STREAM NAME 'stream name']



Specifies a schema, by default public. If schema is any schema other than public, you must supply the schema name. For example:


If you specify a database, it must be the current database.


The target table for the imported data. Vertica loads the data into all projections that include columns from the schema table.


A comma-delimited list of columns in target‑table to store the copied data. See Mapping Between Target and Source Columns below.

You cannot use column fillers as part of the column definition.


The source database of the data to import. A connection to this database must already exist in the current session before starting the copy operation; otherwise Vertica returns an error. For details, see CONNECT TO VERTICA.


The table that is the source of the imported data. If schema is any schema other than public, you must supply the schema name.


A comma-delimited list of the columns in the source table to import. If omitted, all columns are exported. See Mapping Between Target and Source Columns below.


Specifies a COPY load stream identifier. Using a stream name helps to quickly identify a particular load. The STREAM NAME value that you specify in the load statement appears in the stream column of the LOAD_STREAMS system table.


Prevents COPY from committing its transaction automatically when it finishes copying data. For details, see Using Transactions to Stage a Load.


  • Source table: SELECT
  • Source table schema: USAGE
  • Target table: INSERT
  • Target table schema: USAGE

Mapping Between Target and Source Columns

If you copy all table data from one database to another, COPY FROM VERTICA can omit specifying column lists if column definitions in both tables comply with the following conditions:

  • Same number of columns
  • Identical column names
  • Same sequence of columns
  • Matching or compatible column data types

If any of these conditions is not true, the COPY FROM VERTICA statement must include column lists that explicitly map target and source columns to each other, as follows:

  • Contain the same number of columns.
  • List source and target columns in the same order.
  • Pair columns with the same (or compatible) data types.

Node Failure During COPY

See Handling Node Failure During Copy/Export.


The following example copies the contents of an entire table from the vmart database to an identically-defined table in the current database:

=> CONNECT TO VERTICA vmart USER dbadmin PASSWORD 'myPassword' ON 'VertTest01',5433;
=> COPY customer_dimension FROM  VERTICA vmart.customer_dimension;
 Rows Loaded 
(1 row)
=> DISCONNECT vmart;

For more examples, see Copying Data from Another Vertica Database.