Easy selection inside Oracle stored procedure

How to create a stored procedure using simple selection (SELECT * FROM TABLE) using Oracle? Also, any helpful stored procedure guides would help a lot.

Thank.

+3
source share
3 answers

It depends on what you are trying to return from the stored procedure (resultet vs scalar value) and which version of Oracle you are using (newer versions make this easier).

This question is probably a trick. Get the result set from the oracle stored procedure .

+7
source
create or replace procedure spr_select_Emp(eno in number, employee out emp%RowType)
As

Begin
   Select empno,ename,mgrno,hiredate,sal,comm,deptno into employee from emp
   where empno=eno
End;
+2
source
0
source

Source: https://habr.com/ru/post/1776556/


All Articles