dbTalk Databases Forums  

oracle newbie needs stored procedure help

comp.database.oracle comp.database.oracle


Discuss oracle newbie needs stored procedure help in the comp.database.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mike D
 
Posts: n/a

Default oracle newbie needs stored procedure help - 06-04-2004 , 12:11 PM






I am trying to write a simple stored procedure for oracle. My first
in oracle :-(
This procedure will take one parameter from an asp page. That is
login. This is my attempt at the sp

CREATE or replace PROCEDURE osp_Username_select_intr_not

(Login in varchar2)

AS
Begin
Select TUD_NAME, TUD_Email from Tab_User_Details Where TUD_Login =
Login ;
End;

I am using toad to develop this. Toad is sending an error which
states "PLS-00428: an INTO clause is expected in this SELECT
statement"

What am I missing? I don't want to select into anything.

Thanks
Mike

Reply With Quote
  #2  
Old   
Michael Austin
 
Posts: n/a

Default Re: oracle newbie needs stored procedure help - 06-04-2004 , 05:35 PM






Mike D wrote:
Quote:
I am trying to write a simple stored procedure for oracle. My first
in oracle :-(
This procedure will take one parameter from an asp page. That is
login. This is my attempt at the sp

CREATE or replace PROCEDURE osp_Username_select_intr_not

(Login in varchar2)

AS
Begin
Select TUD_NAME, TUD_Email from Tab_User_Details Where TUD_Login =
Login ;
End;

I am using toad to develop this. Toad is sending an error which
states "PLS-00428: an INTO clause is expected in this SELECT
statement"

What am I missing? I don't want to select into anything.

Thanks
Mike
Because you did not specify in/out parameters you need a variable to
place the result of your select statement.

select field into variable from table where x=y;

Michael Austin.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.