OM = ' || vEname || 'Adresse= ' || vAddress ); exception    when MANYROWS  then ( . . . . . . . . . .

A Guide to SQL
9th Edition
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Philip J. Pratt
Chapter3: Creating Tables
Section: Chapter Questions
Problem 13RQ
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.

declare
   vAddress employee.Address%vRoWTYPE; ( . . . . . . . . . . . . . . . . . . )
begin
    select ename , address into  vAddress  from employee where salary = 1500; ( . . . . . . . . . . . . . . . . . . . )
    DBMS_OUTPUT.PUT_LINE('NOM = ' || vEname || 'Adresse= ' || vAddress );
exception
   when MANYROWS  then ( . . . . . . . . . . . . . . . . . . . )
         dbms_output.put_line(“This query returned many rows”);     
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
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