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...

What is the use of cursor ? how cursor allocate context area for executing the sql statement?

Answer Posted / anil kumar jaiswal

cursor :

Oracle create a memory area called context area to execute sql statements. that context area keep all information about the statement processed.
cursor is just a pointer to that context area and you can also say a cursor is pointing to result set of a query.
Types cursor :
1.Implicit cursor : implicit cursor automatically created by oracle when ever there is dml operation performed inside pl/sql block.(dml operation means insert,update,delete).
2. Explicit Cursor : its a user defined cursor, user need to define it explicitly.
cursor declared in declaration section called explicit cursor.

Cursor Attributes : there is 4 types of cursor attributes used.
1.%notfound.
2.%found.
3.%isopen
4.%rowcount.
for more queries contact me on aniljaiswal143@gmail.com.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can we optimize or increase the speed of a mysql select query? : Sql dba

897


What is sql and db2?

949


Explain correlated query work?

998


how can we repair a mysql table? : Sql dba

923


What are stuff and replace function?

1024


How global cursor can be declare with dynamic trigger ?

2154


what are the types of subquery? : Sql dba

1058


Does mysql_real_escape_string prevent sql injection?

912


What does truncate mean in sql?

969


How does join work in sql?

965


Can we create foreign key without primary key?

937


What is online transaction processing (oltp)?

971


Write a sql query to get the third highest salary of an employee from employee_table?

1039


What is cost in sql execution plan?

914


How do you truncate?

858