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!

How to create a stored procedure that returns a result set?

Dee102Feb 9 2021

In SQL Server
Create procedure EmpType
@EmpType varchar(10)
AS
select * from Employee where EmpType = @EmpType
GO
exec EmpType('exempt')
That returns a result set.
How do I do that in Oracle? I have tried many different ways and all returned errors.

This post has been answered by mathguy on Feb 9 2021
Jump to Answer
Comments
Post Details
Added on Feb 9 2021
2 comments
2,383 views