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

Answers were Sorted based on User's Feedback



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

Answer / swapna

We have to use stored procedure and parameterized cursor.

Is This Answer Correct ?    2 Yes 1 No

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

Answer / vikram jayaprakash

Ref Cursor will come in handy when tables are passed
dynamically.

Is This Answer Correct ?    2 Yes 1 No

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

Answer / madhav

By using ref cursor along with reocord data type(with out
using record type we can't pass the table name dynamically)

cursor refcursor is ref cursor;---weak ref cursor
v_refcursor refcursor----cursor variable
type recordtye is record(table_record table%rowtye,.....)

begin
if not v_recordtype%isopen then
open v_recordtype for select * from emp
end if;

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

What is the maximum rows in csv?

0 Answers  


What is field delimiter?

0 Answers  


what is msql? : Sql dba

0 Answers  


What is differance unique key and primary key.

7 Answers   EDS,


how to start mysql server? : Sql dba

0 Answers  






What is the advantage of index in sql?

0 Answers  


What are transaction and its controls?

0 Answers  


how can i read files from a pl/sq l program

3 Answers  


What is Histogram?

0 Answers   NIIT,


How to place comments in pl/sql?

0 Answers  


What is the difference between local variables and global variables?

0 Answers  


what is d diff between grant,commit,rollback n savepoint

1 Answers  


Categories