Answer Posted / 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 |
Post New Answer View All Answers
How do I know if I have sql express or standard?
What is mdf ldf and ndf?
What is varchar sql?
What is the use of desc in sql?
How many tables can a sql database have?
Is primary key always clustered index?
What is the purpose of using pl/sql?
what is the difference between a having clause and a where clause? : Sql dba
Which is faster joins or subqueries?
What schema means?
What is the difference between left and left outer join?
Why is a trigger used?
What is the largest value that can be stored in a byte data field?
Why trigger is used in sql?
Why do we create stored procedures & functions in pl/sql and how are they different?