Which statement is true about the output of the PL/SQL block?

View the Exhibit to examine the PIVSQL block.

Which statement is true about the output of the PL/SQL block?

View the Exhibit to examine the PIVSQL block.

Which statement is true about the output of the PL/SQL block?

A.
It executes and the Output is emprec.deptname:.

B.
It executes and the Output is emprec.deptname:Sales.

C.
It produces an error because NULL is assigned to the emprec.empid field in the record.

D.
It produces an error because the CHECK constraint is violated while assigning a value to the emprec.deptid field in the record.



Leave a Reply 8

Your email address will not be published. Required fields are marked *


gamma

gamma

why A is correct??

shivom

shivom

please run this command..

Aarti

Aarti

A is correct ans.
It executes successfully without any error and constraint violation because we are assigning values to variables only and not inserting or applying it on table.

Ahmed

Ahmed

A is correct
%ROWTYPE does not inherit any constraint from table