QuestionQ36

VerifiedPL/SQL Language Fundamentals

Which three SQL statements embedded in PL/SQL generally benefit from using variables declared with %ROWTYPE?

Choose three
Explanation

A %ROWTYPE variable is a record whose fields match the columns of a table, view, or cursor row. It supports fetching a complete row with SELECT ... INTO, supplying row values for an UPDATE, and retaining fetched field values—such as a key or ROWID—for a DELETE operation. DDL statements do not use row-record variables. Oracle Database PL/SQL Language Reference: Record Variables, Updating Rows with Records

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!