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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Displaying LONG column via DBMS_OUTPUT

Re: Displaying LONG column via DBMS_OUTPUT

From: Maarten Scharroo <mscharroo_at_hr.nl>
Date: Tue, 10 Aug 1999 15:46:18 +0200
Message-ID: <37B02D2A.1DE@hr.nl>


Robert C. Rogers, Jr. wrote:
>
> I am trying to create a PL/SQL script that will, in part, generate a
> VIEW creation script for a specified schema. As such, I am attempting
> to create a cursor that cycles thru ALL_VIEWS and prints the TEXT field
> to he screen. DBMS_OUTPUT.PUT() expects a VARCHAR2 argument...the TEXT
> column is a LONG datatype. Is there a way to display such a column via
> DBMS_OUTPUT (or any other way) in a PL/SQL block?
>
> Thanks in advance.
> Robert.

Yes, you can. You should first fetch your long column into a varchar2 variable. ( a VARCHAR2(32000) will do ) You can display the varchar2 variable using dbms_output.put!

Maarten Received on Tue Aug 10 1999 - 08:46:18 CDT

Original text of this message

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