How to fetch the rows by dynamicaly passing table name
through cursor?

Answer Posted / swapna

We have to use stored procedure and parameterized cursor.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

1. is it possible to use the cursor atttibutes (%found ,% rowcount , %isopen , %notfound ) to our user defined cursor names ....... cursor cursor_name is select * from scott.emp if you use... cursor_name%found , %rowcount ,%isopen,%notfound...will it work... -------------------------- 2.what is the difference between the varray and index by table .. -------- 3. type type_name is table of number(8,3) index by binary_integer; identifier_name type_name; first , last , prior , next ,trim are the methods we can use it for the above type...simillary is there any way to apply for cursors... with thanks and regards..sarao...

2168


How many indexes can be created on a table in sql?

685


what are the differences between require and include, include_once and require_once? : Sql dba

744


How many types of cursors are available in pl/sql?

773


Is left join faster than join?

762






What is the importance of sqlcode and sqlerrm?

1056


what is clause? : Sql dba

763


Can we connect to postgresql using sql developer?

698


Is sql sequential or random?

772


What are pl/sql cursor exceptions?

756


Whis is not false in primary key?

1169


What are the types of keys?

671


How is debugging done?

722


How we can create a table in pl/sql block. Insert records into it? Is it possible by some procedure or function? Please give example?

758


What is the difference between partition and index?

658