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: PL/SQL : How do you echo text to screen ?

Re: PL/SQL : How do you echo text to screen ?

From: AlexJent <alexjent_at_aol.com>
Date: 1997/01/04
Message-ID: <19970104153800.KAA20157@ladder01.news.aol.com>#1/1

See your manual regarding use of DBMS_OUTPUT package.

This will serve your needs...

SET SERVEROUTPUT ON begin

   declare product char(7);
   begin

      select part_number
         into product
         from table1
         where part_number='123456';

       DBMS_OUTPUT.PUT_LINE('Product is:'||product);

   end;
end;

   DBMS_OUTPUT.PUT_LINE('');
Alex Jentilucci - Consultant
Information System Dynamics, Inc
Minneapolis, MN 55323
Tele: 612-476-7395 FAX: 612-473-5954

E-Mail Work(Current Client): jentilucci_at_notes.seagate.com

                           Business: infosys_at_aol.com
                                Home: AlexJent_at_aol.com
Received on Sat Jan 04 1997 - 00:00:00 CST

Original text of this message

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