Skip to content
Advertisement

SP2-0552: Bind variable “N3” not declared

This is a code for comparing three numbers and to print the greatest value.

When i try to run this pl sql code in oracle it says

Can u tell me where it is wrong???I would be very grateful

Advertisement

Answer

You have 3 errors (typos):

  • You need the DECLARE keyword before you start declaring variables.
  • n2:=&n2: should be n2:=&n2;
  • else if should be elsif (or, if you want to keep the else if then you need a second end if; to terminate that second if statement)
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement