Well that's a simple syntax error.
It's IF... ELSE ... END IF;
not
IF... ELSE IF ... END; as you wrote.
And yes, dynamic SQL is bad for performance most of the times and you should avoid it whenever possible.
- Lars
Well that's a simple syntax error.
It's IF... ELSE ... END IF;
not
IF... ELSE IF ... END; as you wrote.
And yes, dynamic SQL is bad for performance most of the times and you should avoid it whenever possible.
- Lars