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
Community Discussion