Answer Posted / mohan
Cursor: Cursor is a pointer which is used to fetch one by one record from active set into plsql block.
Types: There are two types of cursors we have in plsql.
they are,
1. Implicit Cursors
2. Explicit cursors
1.Implicit cursors: when ever we perform sql operations then automatically implicit cursors will come into the picture. no need to declare,open,fetch and close implicit cursors.
2.Explicit cursors: These are user defined cursors. we have to declare,open,fetch and close these cursors.
Cursor Attributes:
1.%found
2.%notfound
3.%isopen
4.%rowcount
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is the implicit cursor in oracle?
Explain how are indexes update?
How to display row numbers with the records?
How will you write a query to get a 5th rank student from a table student_report?
What is archive log in Oracle?
Briefly explain what is literal? Give an example where it can be used?
How to use "in out" parameter properly?
What is an oracle table?
Explain self joins in oracle?
Explain what are the characteristics of data files?
How to retrieve data from an cursor to a record?
src name sex a,male b,female c,male d,female Required output : male female a,b c,d tried pivot but was not successfull select * from src pivot (max(name) for sex in ('MALE','FEMALE'));
What is the difference between the Oracle ODBC driver and a Microsoft ODBC (Open Database Connectivity) Driver?
What is an oracle cursor variable?
How to view the tablespaces in the current database?