difference between imlicit cursor and explicit cursor ?
Answer Posted / vsubbaiah
Implicit : Every SQL Statement performed as implicit cursor. Ex: Select * from Emp where empno = 7839 This is query automatically open the cursor and fetch the record getting the output of that record.
Explicit : In PLSql Block in we declare on declaration section we declare with name and select statement. In executable block we call the cursor and fetch the records more the one. For Ex : Declare
cursor c1 is select * from emp
getemp c1%rowtype;
begin
open c1;
loop
fetch c1 into getemp;
dbms_output.put_line (c1.col list);
end loop;
close c1;
end; This is explicit cursor
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How to load data from external tables to regular tables?
Can u please explain me the Discussion on Except ,using cast like type cast. Question in the context of difference between two tables
How to rename an index in oracle?
Can we write insert statement in function in oracle?
How to load data through external tables?
What is clustered table in Oracle?
Why does oracle 9i treat an empty string as null?
How to assign data of the deleted row to variables?
What is a data lock in oracle?
How to convert characters to dates in oracle?
What is a nvl function? How can it be used?
What is an index associated with a constraint?
Where do we use decode and case statements?
Does oracle partitioning improve performance?
What is difference between truncate and delete?