Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Simple Oracle Procedure to return Recordset

182170May 27 2007 — edited May 27 2007
Hi,
I need to create a procedure to return a recordset based on a single variable.

Basically they enter a student ID and I return their information so the in variable would be student_ID. Would it be as simple as this?

CREATE PROCEDURE GetGrades(@student_id in varchar2)

AS

Select stu_first_name, stu_last_name, stu_grade
from sfrstcr, spriden
where sfrstcr_pidm = spriden_pidm
and spriden_pidm = @student_id

RETURN

Any help would be appreciated.

New at procedures

Message was edited by:
robert2504
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 24 2007
Added on May 27 2007
1 comment
365 views