The indentation of the keyword, elseif, used by mysql, is different from the one of the keyword elsif used by other sql dialects, as you can see from the following example
IF (SELECT ID
FROM SomeTable
WHERE SomeField > 0) IS NULL
THEN
SET SomeVar = TRUE;
ELSIF
SET SomeVar = FALSE;
END IF;
IF (SELECT ID
FROM SomeTable
WHERE SomeField > 0) IS NULL
THEN
SET SomeVar = TRUE;
ELSEIF
SET SomeVar = FALSE;
END IF;
The indentation of the keyword,
elseif
, used by mysql, is different from the one of the keywordelsif
used by other sql dialects, as you can see from the following example