DECLARE CURSOR cursor1 IS SELECT * FROM Students; line cursor1 %type; --------------- BEGIN OPEN cursor1; LOOP SELECT cursor1 inside line; --------------- DBMS_OUTPUT.PUT_LINE('first name=  '|| line.fname || 'last name= '||line.lname); EXIT WHEN Cursor %FOUND;

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter2: Basic Sql Select Statements
Section: Chapter Questions
Problem 10RQ: What is a NULL value?
icon
Related questions
Question

Fill the blanks with the suitable PL/SQL statements that correct each of the errors that appear in the given PL/SQL program. (display as -----------)

Fill the blanks with the suitable PL/SQL statements that correct each of the errors that appear in the given PL/SQL program.

 

DECLARE

CURSOR cursor1 IS SELECT * FROM Students;

line cursor1 %type; ---------------

BEGIN

OPEN cursor1;

LOOP

SELECT cursor1 inside line; ---------------

DBMS_OUTPUT.PUT_LINE('first name=  '|| line.fname || 'last name= '||line.lname);

EXIT WHEN Cursor %FOUND; 

------------------------

END LOOP;

CLOSE cursor1;

END;

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Intermediate SQL concepts
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning