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 |
Does sqlite need a server?
What are different types of sql?
what are the advantages of primary key over unique+notnull
7 Answers Consultancy, LGS, Oracle,
What is Referential Integrity?
What is a native sql query?
What are the different datatypes available in PL/SQL?
What are the different types of functions in sql?
what is the boundary line in varrays?
how to use regular expression in pattern match conditions? : Sql dba
In table three columns with 1 milion records(here there is no sequence values) i want add one more column with sequence values from the first how it is posible?
How do I turn a list into a table?
What is a bitmap index?
4 Answers Choice Solutions, Infosys,
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)