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

Thread: Cursor

  1. #1
    Join Date
    Dec 2003
    Posts
    21

    Cursor

    Is it possible to pass table name as input parameter into the cursor?

    cursor my_cur(table_name varchar2) is
    select column from table_name

  2. #2
    Join Date
    May 2001
    Location
    San Francisco, California
    Posts
    510
    Yes. If the table_name is a regular pl/sql variable and you have previously selected the tablename into that variable from one of the data dictionary views.
    Remember the Golden Rule - He who has the gold makes the rules!
    ===================
    Kris109
    Ph.D., OCP 8i, 9i, 10g, 11g DBA

  3. #3
    Join Date
    Dec 2003
    Posts
    21
    Could yuo write ma an example.
    I have tried that but it's not working.

  4. #4
    Join Date
    Mar 2001
    Location
    Reading, U.K
    Posts
    598
    post your example
    Cheers!
    OraKid.

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