How to fetch the rows by dynamicaly passing table name
through cursor?
Answers were Sorted based on User's Feedback
Answer / swapna
We have to use stored procedure and parameterized cursor.
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / vikram jayaprakash
Ref Cursor will come in handy when tables are passed
dynamically.
Is This Answer Correct ? | 2 Yes | 1 No |
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 |
What is the maximum rows in csv?
What is field delimiter?
what is msql? : Sql dba
What is differance unique key and primary key.
how to start mysql server? : Sql dba
What is the advantage of index in sql?
What are transaction and its controls?
how can i read files from a pl/sq l program
What is Histogram?
How to place comments in pl/sql?
What is the difference between local variables and global variables?
what is d diff between grant,commit,rollback n savepoint