Ï뽨Á¢Ò»¸ö´¥·¢Æ÷,µ±ÓиüÐÂΪd_lastUpdate=nullʱ(d_lastUpdateΪÕâÌõ¼Ç¼µÄ¸üÐÂʱ¼ä,¾ÍÊÇÕâÌõ¼Ç¼µ±Ç°Ã»ÓиüÐÂ),´¥·¢Æ÷°Ñb_hostStateÉèÖÃΪ0 ´¥·¢Æ÷´úÂëÈçÏÂ: delimiter | create trigger manager_bu before update on manager for each row begin if new.d_lastUpdate=null then set new.b_hostState=0; end if ; end;| delimiter ; ÎÊÌâÊǵ±update manager set d_lastUpdate=null where v_studentName like 'Íô%'; d_lastUpdate±äΪnull,b_hostState²»»á±ä³É0(ÔÀ´ÊÇ1״̬) ÓÉÓÚÖ»ÓÐÒ»¸ö±í²»ÄÜʹÓÃafter update,Èç¹ûÏÖÔÚÏëʵÏÖÕâ¸ö¹¦ÄÜÔõôÐ޸İ¡,¼±~~~~~~~~~~`if new.d_lastUpdate=null-> if new.d_lastUpdate is null »¹ÓÐÒ»¸öÎÊÌâ¾ÍÊǸô¥·¢Æ÷ÿ5·ÖÖÓ´¥·¢Ò»´Î,²»ÂÛÊÇ·ñÓиüÐÂ,ÊDz»ÊÇÒªÓÃevent Event Scheduler¿ØÖÆ,ÔõôŪ? if new.d_lastUpdate=null then
-------->
if new.d_lastUpdate is null then ²»ÄÜ "=null" Óнá¹ûÁË,µ«ÊÇ=nullºÍis nullÓÐʲô·Ö±ðô? NULL²»µÈÓÚNULL£¬ÅжÏNULLÒªÓÃIS¡¡NULL Á˽â,Èç¹ûҪʵÏÖÿ5·ÖÖÓÖ´ÐÐÒ»´ÎÓÃʲô·½·¨×î¼òµ¥,ÒªEvent Schedulerô?