mysql problem z if'em

0

Mam takiego if'a

IF `last_register` != NULL AND `last_register` + 900 > `unix_time` THEN 

 	SET info = 2;

ELSE


 	SET info = 1;

END IF;

w zmiennej last_register jest wartość 1307698099, a unix_time 1307698348

i wykonuje się else, nie wiem czemu

1

Hm.. może zamiast != NULL spróbuj is not NULL?

0

Przecież is not to alternatywa dla !=

ha, działa, zawsze myślałem, że to tylko alternatywa :P

0
IF `last_register` is not NULL AND `last_register` + 900 > `unix_time` THEN 

1 użytkowników online, w tym zalogowanych: 0, gości: 1