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

Home -> Community -> Mailing Lists -> Oracle-L -> Join in the SQL Plus COPY command

Join in the SQL Plus COPY command

From: Djordje Jankovic <djankovic_at_corp.attcanada.ca>
Date: Thu, 07 Jun 2001 16:43:33 -0700
Message-ID: <F001.003217A4.20010607164551@fatcity.com>

Hi gurus,

I need to copy a part of the table with a long field from one database to another.

If I try to use:

COPY FROM XXXXX/XXXXX_at_source

       TO YYYYY/YYYYY_at_target
     INSERT target_tab
     USING select *
             from source_tab
            where rowid in (select rowid
                              from rowid_list_tab)

the command breaks as, as far as I can see, COPY command does not allow a subquery.

I am on 8.0.4.

If anybody has had a similar problem and has found a workaround, or another idea how to copy a part of a table with a long field would be very much appreciated ? This is reallllllly important as a project is depending on that.

Thanks.

Djordje
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Djordje Jankovic
  INET: djankovic_at_corp.attcanada.ca

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 Thu Jun 07 2001 - 18:43:33 CDT

Original text of this message

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