Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Copy

RE: Copy

From: Hand, Michael T <HANDM_at_polaroid.com>
Date: Mon, 08 Jul 2002 07:38:25 -0800
Message-ID: <F001.00491122.20020708073825@fatcity.com>


Also, as the example points out, make sure you use the hyphen at the end of line if your command spans more than 1 line.

-----Original Message-----
Sent: Sunday, July 07, 2002 9:23 AM
To: Multiple recipients of list ORACLE-L

copy has been around for a loooong time
from the 8.1.7 docs

COPY {FROM database | TO database | FROM database TO database}

            {APPEND|CREATE|INSERT|REPLACE} destination_table
            [(column, column, column, ...)] USING query

and the example

SQL> COPY FROM SCOTT/TIGER_at_HQ -
> CREATE SALESMEN (EMPNO,SALESMAN) -
> USING SELECT EMPNO, ENAME FROM EMP -
> WHERE JOB='SALESMAN'

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Hand, Michael T
  INET: HANDM_at_polaroid.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Mon Jul 08 2002 - 10:38:25 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US