DBAsupport.com Forums - Powered by vBulletin
Results 1 to 6 of 6

Thread: Access cursor in cursor ...

Threaded View

  1. #1
    Join Date
    Sep 2000
    Location
    Chennai, India
    Posts
    865

    Question Access cursor in cursor ...

    Hi

    The requirement is as follows:

    Have a table (l_valid) that has 5 columns, of which 4 columns hold the name of related tables and 1 column has a key.

    Now, I need to access these 4 tables using the key in a cursor. (this I have done).

    Furthermore, after getting the names of 4 tables using the key, I need to iterate through the columns of each of these 4 tables in a cursor. How do I do this?

    I done the following till now...

    Code:
    CURSOR c1 IS
    		SELECT  hrank a, dbv b, dgv c, bbv d, fbv e, abv f, rbv g
    		from l_valid
    		where dbv is not null or
    		fbv is not null or
    		dgv is not null or
    		bbv is not null or
    		abv is not null or
    		rbv is not null;
    
    	CURSOR c2(p_b tab.tname%type) IS
    		SELECT tname h 
    		FROM tab
    		WHERE tname = p_b;
    Thanks for your input.
    Last edited by ggnanaraj; 02-11-2003 at 12:38 AM.

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