1. 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 cursorl IS SELECT * FROM Students; line cursorl %type; | BEGIN OPEN cursor1; LOOP SELECT cursorl inside line; I DBMS_OUTPUT PUT_LINE(frst name= "| line. finame || last name="line. Iname); EXIT WHEN Cursor %FOUND; END LOOP; CLOSE cursor1; END;

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter12: Subqueries And Merge Statements
Section: Chapter Questions
Problem 19MC
icon
Related questions
Question
1. 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 cursorl %type; |
BEGIN
OPEN cursor1;
LOOP
SELECT cursorl inside line; I
DBMS_OUTPUT PUT_LINE(first name= || line.fname || "last name= "| line.Iname);
EXIT WHEN Cursor %FOUND; |
END LOOP;
CLOSE cursor1;
END;
Transcribed Image Text:1. 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 cursorl %type; | BEGIN OPEN cursor1; LOOP SELECT cursorl inside line; I DBMS_OUTPUT PUT_LINE(first name= || line.fname || "last name= "| line.Iname); EXIT WHEN Cursor %FOUND; | END LOOP; CLOSE cursor1; END;
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Table
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
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning