Passing parameters to Explicit Cursor
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Passing parameters to Explicit Cursor

  1. #1
    Join Date
    Jun 2008
    Posts
    38

    Passing parameters to Explicit Cursor

    below is the PL/SQL code in which i m passing the parameters to the cursor.What i want is how to put the logic inside the PL/SQL to view the result

    Code:
    Declare
    	Cursor emp_cur  ( p_id number,p_name varchar2 ) is
    	SELECT  empno,ename FROM   EMP  WHERE EMPNO= p_id and ENAME=p_name;
    BEGIN 
    	OPEN emp_cur ( 7521,'WARD');
    	CLOSE emp_cur;
    END;	
    /

  2. #2
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,331
    well you will have to use a ref curosr to return the values or assign the variables to something and use dbms_output to print them to the screen.

    this really is basic plsql, have you read the docs?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width