Question: ( Marks: 1 4 ) Question 5 Consider the following PL / SQL query: SET ServerOutputs on DECLARING doctor _ name varchar 2 ( 5
Marks:
Question
Consider the following PLSQL query:
SET ServerOutputs on
DECLARING
doctorname varchar;
CURSER c IS SELECT dfirstname dsurname DOCTOR
FROM doctor medicine prescription
where doctorid doctorid
and medid medid
and quantity ;
BEGIN
OPEN C;
LOOP
FETCH cur INTO doctorname;
EXIT WHEN NOTFOUND;
dbmsoutput.putlineDOCTOR: dname ;
END;
END;
Q The code above has seven errors. Identify the errors and rewrite the code so
that it would produce a valid output.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
