what is the value of a emty field.
Quote:
DECLARE temp int(11);
SELECT OrderNr
INTO temp
FROM Orders
WHERE ID = 5;
IF temp = NULL
THEN temp = 7
END IF;
|
i tryed with temp = 0 and temp = NULL and temp < 2.
But he comes never in the if statement. he go's only to the else statement