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@source
TO YYYYY/YYYYY@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: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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).