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: LONG to char

RE: LONG to char

From: Gunawan Yuwono <gyuwono_at_yahoo.com>
Date: Thu, 22 Feb 2001 00:42:19 -0800
Message-ID: <F001.002B9FE8.20010221133549@fatcity.com>

Try use PL/SQL Block with DBMS_OUTPUT:

SET SERVEROUTPUT ON SIZE 100000
DECLARE
   CURSOR c_cursor IS
   SELECT long_type_column, varchar2_type_column FROM tab1;

BEGIN
   FOR c_row IN c_cursor LOOP

      DBMS_OUTPUT.PUT_LINE('INSERT INTO TAB2 VALUES (''' ||
         c_row.long_type_column ||
         ''', ''' || c_row.varchar2_type_column || ''');');
   END LOOP;
END;
/

Just curious, cannot you use EXP/IMP utilities or COPY command for what you are trying to accomplish?

HTP.
Gunawan Yuwono


Gunawan Yuwono
Oracle DBA
Kansas City, USA

Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Gunawan Yuwono
  INET: gyuwono_at_yahoo.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 Thu Feb 22 2001 - 02:42:19 CST

Original text of this message

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