What is a cursor for loop ?
Answers were Sorted based on User's Feedback
Answer / anil kumar jampana
cursor for loop is also a cursor. Here no need to handle
open,fetch,close operations. These operations are handled
by for loop.
Is This Answer Correct ? | 8 Yes | 0 No |
Answer / dipti
Another nice feature of the CURSOR FOR is the ability to
define the cursor inline. Below is a cursor that is not
declared in the declaration section of the executing
block. The cursor definition is included in the CURSOR FOR.
SQL> begin
2 for r_c11 in
(select author_last_name l_name,
3 author_first_name f_name
4 from author) loop
5 dbms_output.put_line(initcap(
6 r_c11.l_name||
', '||r_c11.f_name));
7 end loop;
8 end;
9
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / nishi
cursor for loop is also a cursor. Here no need to handle open, fetch, close operations. These operations are handled by for loop.
Is This Answer Correct ? | 0 Yes | 0 No |
Cursor for loop implicitly declares %rowtype as Loop index
opens the cursor and fetch the rows from active set into
fields and then process it and then close the cursor.
Is This Answer Correct ? | 1 Yes | 3 No |
How do you copy a table in sql?
what is cross join? : Sql dba
How do I install microsoft sql?
How is Oracle 10g helpful when compared to oracle 9i and what is grid computing
Explain the PL/SQL compilation process.
Define implicit and explicit cursors.
How to recompile a already made trigger?
What is a constraint?
we have a package and we have grants to execute that package inside of that we have table, here we don't have privileges to this table? whether this package will execute or not?
List the differences between plsql - function & procedures
how to retrieve only duplicate values in a table
What types of commands can be executed in sql*plus?