QuestionQ20Verified/PL/SQL Language FundamentalsCopy linkReport a problemAsk AstroTutorSave questionExamine this DECLARE section: Which line will produce an error upon execution?Aline 5Bline 3Cline 2Dline 4Eline 6Show AnswerAnswerExplanationA VARCHAR2 PL/SQL variable must specify its maximum size. The declaration v_char VARCHAR2 := NULL; omits that required length constraint, so it is invalid. A NOT NULL variable may be initialized with DEFAULT TRUE, and SUBSTR(..., 0) returns a null value that is valid for a nullable VARCHAR2(80) variable.Learn moreOracle Database PL/SQL Language Reference — DeclarationsOracle PL/SQL User’s Guide and Reference — VARCHAR2 datatypeShow comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion