Nested if-statement in MySQL -
I am creating a process that includes a place ("staed") and I would like to check whether the input tap However, whenever I mark CRASH your code (bottom) tries to add I- statement to start around me, so I have my syntax that get an error saying "DECLARE varStedskodeID INT; " But it is not true which is part of the IF-statement after I am trying to add the part. The syntax of my if-statement in my eyes is inside the code, but only check-in-my-null-only if-statement also crashes with just a simple (right) . Can someone give me this hint that, could it be due to the accident? if the drop process is included; DELIMITER then & lt involved in the process of making $$ in (these Inputstensanan VARCHAR (255), IN input Seststep VARCHAR (255), IN input Kmmandn VARCHAR (255)) BEGIN if (TRUE); & Lt; ------ CRASH DECLARE varStedskodeID INT; DECLARE varKommunenr INT; If (where Stadstep the selected ID (Stadkodaidi) Kodnwn = input Stestep limit 1) = 0 Then Insert...