1 BEGIN 2 set @n=(SELECT count(day) from log where day=CURDATE()); 3 IF @n=0 THEN 4 call m_LogInsert(); 5 ELSE 6 call m_LoginCheck(); 7 end if; 8 end
1 BEGIN 2 set @n=(SELECT count(day) from log where day=CURDATE()); 3 IF @n=0 THEN 4 call m_LogInsert(); 5 ELSE 6 call m_LoginCheck(); 7 end if; 8 end