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
What is a private synonym?
How to check the oracle tns settings?
What are the limitations oracle database 10g xe?
Explain the dml?
What is the difference between sharding and replication?
What is set operator oracle?
Tab A A B ------ 1 A 2 B 3 C Tab B A B ----- 4 D 5 E 6 F Generate the value into B table from A table. Only table A has the value. Write the SQL query to get B table value.
How do I use os authentication with weblogic jdriver for oracle and connection pools?
What privilege is needed for a user to insert rows to tables in another schema?
What is the data type of dual table?
How can we find out the current date and time in oracle?
What is a package ? What are the advantages of package ?
Explain the difference between replace() and translate() functions in oracle?
What is meant by recursive hints in oracle?
How to export data with a field delimiter?