Skip to content

COPY

COPY customers TO '/usr1/proj/bray/sql/customers';
COPY 22

In the above sample, the COPY command is used to export data from the customers table to a file located at /usr1/proj/bray/sql/customers. If the command was successful, it returns the number of rows that are copied. In this case, 22 rows were copied to the file.