ThatRickGuy
Programmer
Hey Guys,
I just started a new project working with an Oracle 10g back end and I'm getting stumped on something that seems like it should be simple. I'm looking for a way to have a SELECT statement in a Stored Procedure:
But I am getting "PLS-00428: an INTO clause is expected in this SELECT statement". I've seen some info on the net about selecting all of the data into parameters, but I'm not sure how well that is going to work in a case like this where I'm trying to retrieve the entire table.
Is there some better way to have a select statement that is stored on the server?
Thanks,
-Rick
VB.Net Forum forum796 forum855 ASP.NET Forum
I believe in killer coding ninja monkeys.
I just started a new project working with an Oracle 10g back end and I'm getting stumped on something that seems like it should be simple. I'm looking for a way to have a SELECT statement in a Stored Procedure:
Code:
CREATE OR REPLACE PROCEDURE HTS.AUDIO_SELECTALL (
)IS
BEGIN
SELECT audio.slide_id,
audio.audio,
audio.language_id,
audio.audio_id,
audio.createdby,
audio.createddate,
audio.modifiedby,
audio.modifieddate
FROM hts.audio
END AUDIO_SELECTALL;
But I am getting "PLS-00428: an INTO clause is expected in this SELECT statement". I've seen some info on the net about selecting all of the data into parameters, but I'm not sure how well that is going to work in a case like this where I'm trying to retrieve the entire table.
Is there some better way to have a select statement that is stored on the server?
Thanks,
-Rick
VB.Net Forum forum796 forum855 ASP.NET Forum
I believe in killer coding ninja monkeys.