Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the uses of merge?

1157


Which is faster subquery or join?

1203


What is view? Can we update view

1424


how tsql statements can be written and submitted to the database engine? : Transact sql

973


What is nvarchar max in sql?

1005


What is coalesce sql?

991


Mention what plvcmt and plvrb does in pl/sql?

1130


How do we accept inputs from user during runtime?

1050


What is rename command in sql?

1020


Can I create table without primary key?

989


What does where 1 1 mean in sql?

1031


how many tables will create when we create table, what are they? : Sql dba

1065


what is a foreign key ? : Sql dba

1074


Does view contain data?

1022


How do you know if a relationship is 2nf?

933