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

Home -> Community -> Usenet -> c.d.o.server -> Re: How to create stored procedure in SQLplus?

Re: How to create stored procedure in SQLplus?

From: Rookie <fake_at_fake.com>
Date: Sat, 3 May 2003 01:32:17 +1000
Message-ID: <3eb28fca$1@shknews01>


thanks heap
"Karsten Farrell" <kfarrell_at_belgariad.com> ¼¶¼g©ó¶l¥ó·s»D :MPG.191ade7c2e8f04cb989764_at_news.la.sbcglobal.net...
> fake_at_fake.com said...
> > assume i have a table abc
> >
> > create or replace procedure showabc is
> > begin
> > select * from abc;
> > end;
> > /
> >
> > what is the problem ?
> >
> > thanks again
> >
> PL/SQL does not automatically display the output of a SELECT statement
> (you need dbms_output.put_line or similar for that). So you need to put
> your output into a variable or ref cursor ... which means you need to
> limit it to one row returned (if in a variable) or place a output ref
> cursor in the procedure args.
> --
> /Karsten
> DBA > retired > DBA
Received on Fri May 02 2003 - 10:32:17 CDT

Original text of this message

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