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

Is primary key a clustered index?

1008


What are the types of join in sql?

1146


What is the need of merge statement?

1092


What are types of joins?

1026


Is keyword pl sql?

1055


Why sql query is slow?

1040


What is percent sign in sql?

1324


What is cursor explain with example?

1027


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

1158


Why is theta join required?

1188


What does closing a cursor do?

1372


Is full outer join same as cross join?

1013


What are sql commands?

1066


what does it mean to have quoted_identifier on? : Sql dba

1180


What is the difference between left and left outer join?

991