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: Join in the SQL Plus COPY command

RE: Join in the SQL Plus COPY command

From: Hillman, Alex <Alex.Hillman_at_usmint.treas.gov>
Date: Fri, 08 Jun 2001 07:47:14 -0700
Message-ID: <F001.0032238B.20010608074204@fatcity.com>

You can change your query to:

select s.* from source_tab s, rowid_list_tab r

            where s.rowid=r.rowid

Alex Hilllman

-----Original Message-----
Sent: Thursday, June 07, 2001 8:46 PM
To: Multiple recipients of list ORACLE-L

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).
--

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

Author: Hillman, Alex
  INET: Alex.Hillman_at_usmint.treas.gov
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 Fri Jun 08 2001 - 09:47:14 CDT

Original text of this message

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