Skip to main content

INVALID_VARIABLE_DECLARATION error condition

SQLSTATE: 42K0M

Invalid variable declaration.

NOT_ALLOWED_IN_SCOPE

Declaration of the variable <varName> is not allowed in this scope.

ONLY_AT_BEGINNING

Variable <varName> can only be declared at the beginning of the compound.

QUALIFIED_LOCAL_VARIABLE

The variable <varName> must be declared without a qualifier, as qualifiers are not allowed for local variable declarations.

REPLACE_LOCAL_VARIABLE

The variable <varName> does not support DECLARE OR REPLACE, as local variables cannot be replaced.