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
Explain oracle insert into command?
What is Library Cache in Oracle?
What is the difference between alert log file and tarce file ?
What is concurrency in oracle?
Explain about achiever in sql?
How to connect ms access to oracle servers?
i have a question here... As of my knowledge, when we apply an index (b-tree)on a column, internally it arranges the data in b-tree format and do the fetching process correspondingly... and my quetion is... How a bit-map index arranges the data internally when applied on a column?IS it in b-tree format or whatelse?
How do you increase the OS limitation for open files (LINUX and/or Solaris)?
How to start your 10g xe server from command line?
What is the relationship among database, tablespace and data file?
Is it possible to set second Primary Key Constraint in a table in Oracle Database ?
Differentiate between pre-select and pre-query?
Why do I get unexpected characters from 8-bit character sets in weblogic jdriver for oracle?
How to count groups returned with the group by clause in oracle?
How to view the data files in the current database?