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: Copying some rows from a table having a long datatype column.

RE: Copying some rows from a table having a long datatype column.

From: Alex Hillman <alex_hillman_at_physia.com>
Date: Wed, 31 Jan 2001 16:37:06 -0500
Message-Id: <10758.127978@fatcity.com>


This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible.

------_=_NextPart_001_01C08BCD.F53DE8A0
Content-Type: text/plain;

        charset="windows-1252"

Also if you need selected row you can create a view based on required select statement and use this view in the copy command - did not try this myself but should work.

Alex Hillman

-----Original Message-----
From: Cale, Rick T (Richard) [mailto:RICHARD.T.CALE_at_saic.com] Sent: Wednesday, January 31, 2001 3:21 PM To: Multiple recipients of list ORACLE-L Subject: RE: Copying some rows from a table having a long datatype column.

Use the COPY command. It will allow you to insert a long from another table.

Rick

> -----Original Message-----
> From: Kumar, Dharminder [SMTP:Dharminder.Kumar_at_bmonesbittburns.com]
> Sent: Wednesday, January 31, 2001 2:32 PM
> To: Multiple recipients of list ORACLE-L
> Subject: Copying some rows from a table having a long datatype
> column.
>
> Hi,
> I have a requirement like mentioned bellow.
>
> Table A
>
> Columns datatype
> col1 number
> col2 long
>
> Table B
> col1 number
> col2 long
>
> I need to put some rows from table A to table B.
> If I use the sqlplus
>
> sqlplus>insert into A select * from B where B.col1 < 50;
> I get the following error.
>
> ORA-00997: illegal use of LONG datatype
>
> Is there any other way to accomplish this goal.
>
> Thanks.
>
> Dharminder Kumar
>
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Kumar, Dharminder
> INET: Dharminder.Kumar_at_bmonesbittburns.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).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Cale, Rick T (Richard)
  INET: RICHARD.T.CALE_at_saic.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).

------_=_NextPart_001_01C08BCD.F53DE8A0
Content-Type: text/html;
	charset="windows-1252"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dwindows-1252">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2448.0">
<TITLE>RE: Copying some rows from a table having a long datatype =
column.</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Also if you need selected row you can create a view =
based on required select statement and use this view in the copy =
command - did not try this myself but should work.</FONT></P>

<P><FONT SIZE=3D2>Alex Hillman</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Cale, Rick T (Richard) [<A =
HREF=3D"mailto:RICHARD.T.CALE_at_saic.com">mailto:RICHARD.T.CALE_at_saic.com</=
A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Wednesday, January 31, 2001 3:21 PM</FONT>
<BR><FONT SIZE=3D2>To: Multiple recipients of list ORACLE-L</FONT>
<BR><FONT SIZE=3D2>Subject: RE: Copying some rows from a table having a =
long datatype</FONT>
<BR><FONT SIZE=3D2>column.</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Use the COPY command. It will allow you to insert a =
long from another table.</FONT>
</P>

<P><FONT SIZE=3D2>Rick</FONT>
</P>

<P><FONT SIZE=3D2>&gt; -----Original Message-----</FONT>
<BR><FONT SIZE=3D2>&gt; From: Kumar, Dharminder =
[SMTP:Dharminder.Kumar_at_bmonesbittburns.com]</FONT>
<BR><FONT SIZE=3D2>&gt; Sent: Wednesday, January 31, 2001 2:32 =
PM</FONT>
<BR><FONT SIZE=3D2>&gt; To:&nbsp;&nbsp; Multiple recipients of list =
ORACLE-L</FONT>
<BR><FONT SIZE=3D2>&gt; Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Copying =
some rows from a table having a long datatype</FONT>
<BR><FONT SIZE=3D2>&gt; column.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Hi,</FONT>
<BR><FONT SIZE=3D2>&gt; I have a requirement like mentioned =
bellow.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Table A</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Columns&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
datatype</FONT>
<BR><FONT SIZE=3D2>&gt; col1&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; number</FONT>
<BR><FONT SIZE=3D2>&gt; col2&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; long</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Table B</FONT>
<BR><FONT SIZE=3D2>&gt; col1&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; number</FONT>
<BR><FONT SIZE=3D2>&gt; col2&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; long</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; I need to put some rows from table A to table =
B.</FONT>
<BR><FONT SIZE=3D2>&gt; If I use the sqlplus </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; sqlplus&gt;insert into A select * from B where =
B.col1 &lt; 50;</FONT>
<BR><FONT SIZE=3D2>&gt; I get the following error.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; ORA-00997: illegal use of LONG datatype</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Is there any other way to accomplish this =
goal.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Thanks.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Dharminder Kumar</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; -- </FONT>
<BR><FONT SIZE=3D2>&gt; Please see the official ORACLE-L FAQ: <A =
HREF=3D"http://www.orafaq.com" =
TARGET=3D"_blank">http://www.orafaq.com</A></FONT>
<BR><FONT SIZE=3D2>&gt; -- </FONT>
<BR><FONT SIZE=3D2>&gt; Author: Kumar, Dharminder</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp; INET: =
Dharminder.Kumar_at_bmonesbittburns.com</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Fat City Network Services&nbsp;&nbsp;&nbsp; -- =
(858) 538-5051&nbsp; FAX: (858) 538-5051</FONT>
<BR><FONT SIZE=3D2>&gt; San Diego, =
California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Public Internet =
access / Mailing Lists</FONT>
<BR><FONT SIZE=3D2>&gt; =
--------------------------------------------------------------------</FO=
NT>
<BR><FONT SIZE=3D2>&gt; To REMOVE yourself from this mailing list, send =
an E-Mail message</FONT>
<BR><FONT SIZE=3D2>&gt; to: ListGuru_at_fatcity.com (note EXACT spelling =
of 'ListGuru') and in</FONT>
<BR><FONT SIZE=3D2>&gt; the message BODY, include a line containing: =
UNSUB ORACLE-L</FONT>
<BR><FONT SIZE=3D2>&gt; (or the name of mailing list you want to be =
removed from).&nbsp; You may</FONT>
<BR><FONT SIZE=3D2>&gt; also send the HELP command for other =
information (like subscribing).</FONT>
<BR><FONT SIZE=3D2>-- </FONT>
<BR><FONT SIZE=3D2>Please see the official ORACLE-L FAQ: <A =
HREF=3D"http://www.orafaq.com" =
TARGET=3D"_blank">http://www.orafaq.com</A></FONT>
<BR><FONT SIZE=3D2>-- </FONT>
<BR><FONT SIZE=3D2>Author: Cale, Rick T (Richard)</FONT>
<BR><FONT SIZE=3D2>&nbsp; INET: RICHARD.T.CALE_at_saic.com</FONT>
</P>

<P><FONT SIZE=3D2>Fat City Network Services&nbsp;&nbsp;&nbsp; -- (858) =
538-5051&nbsp; FAX: (858) 538-5051</FONT>
<BR><FONT SIZE=3D2>San Diego, =
California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Public Internet =
access / Mailing Lists</FONT>
<BR><FONT =
SIZE=3D2>---------------------------------------------------------------=
-----</FONT>
<BR><FONT SIZE=3D2>To REMOVE yourself from this mailing list, send an =
E-Mail message</FONT>
<BR><FONT SIZE=3D2>to: ListGuru_at_fatcity.com (note EXACT spelling of =
'ListGuru') and in</FONT>
<BR><FONT SIZE=3D2>the message BODY, include a line containing: UNSUB =
ORACLE-L</FONT>
<BR><FONT SIZE=3D2>(or the name of mailing list you want to be removed =
Received on Wed Jan 31 2001 - 15:37:06 CST

Original text of this message

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