QuestionQ21

VerifiedPL/SQL Language Fundamentals

Examine this DECLARE section:

Question Image

Which two lines are valid?

Choose two
Explanation

An ordinary PL/SQL identifier may contain a dollar sign after its first character, and a variable declared NOT NULL is valid when it has an initializer; therefore salary$ VARCHAR2(10) NOT NULL := '9000$'; is valid. AVG may be used as an identifier, so avg INTEGER; is also valid. A comma-separated list of variables is not valid in a PL/SQL variable declaration, and SIMPLE_INTEGER has an implicit NOT NULL constraint, requiring an initial value. Oracle PL/SQL Language Fundamentals

Learn more

Community Discussion

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