a procedure one in two out parameters i am waiting it in a
sql query can i get the output

Answer Posted / aurobinda

yes ,we can

create or replace procedure (v_empno in emp.empno%
type,v_ename out emp.ename%type,v_sal out emp.sal%type)
is
begin
select ename,sal into v_ename,v_sal from emp
where empno =v_empno);
dbms_output.put_line(v_ename||' '||v_sal);
end;

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is trigger point?

732


What is trigger in flip flop?

729


What are dml commands?

741


What is a recursive stored procedure?

813


what is the difference between delete and truncate statement in sql? : Sql dba

762






Can you do multiple joins in sql?

730


Why do we need databases?

730


What is a null value?

852


Explain clause in sql?

749


How do you create a db file?

712


What are the string functions in sql?

720


What are the syntax and use of the coalesce function?

775


how would concatenate strings in mysql? : Sql dba

742


What is the use of sqlerrd 3?

682


What are sql injection vulnerabilities?

692