Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Facing error in plsql procedure while using if else

I have included a snippet from my plsql procedure. In this I have an if else if lock.I am doing a string comparison in IF which is not giving an error and another string comparison in ELSE IF which is highlighted in red and giving an error.
I am unable to understand why.

IF x='new' THEN
   --sql statement

ELSEIF x='old' THEN
   --sql statement
END IF;

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Syntax for else if is elsif not elseif, without the ‘e’.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading