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: Stored Procedure Question

Re: Stored Procedure Question

From: Pradhan <empradhan_at_dplus.net>
Date: Thu, 22 Jul 1999 22:20:05 -0400
Message-ID: <YhQl3.555$xA.592@newsfeed.slurp.net>


You cannot use simple select statement in PLSQL as in SQL*Plus. Select ... into .. from <tablename> is the standard syntax in PLSQL. HTH
Pradhan

Ian Steward wrote in message ...
>I am just starting to learn Oracle so be gentle. Here is my question:
>
>I am trying to create a stored procedure as follows:
>
>CREATE PROCEDURE SP_BOMINQ (ASSY CHAR ) AS
>BEGIN
>SELECT Assembly,Component,Usage,Revision,UOM,Datein,Dateout,ChangId,Line
>FROM BOM
>WHERE Assembly = ASSY
>Order By Line,Datein;
>END;
>
>This will not compile and gives me the following error:
>
>PLS-00428: an INTO clause is expected in this SELECT statement.
>
>I cannot see why I would need an INTO clause in a simple Select statement.
>Can someone advise?
>
>- Ian S.
>
>
Received on Thu Jul 22 1999 - 21:20:05 CDT

Original text of this message

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