Database reference - sakila

sakila -  triggers -  upd_film

Description

none

Trigger properties

namevalue
parentfilm
typeUPDATE
action order0
action orientationROW
action timingAFTER
action reference old rowOLD
action reference new rowNEW
sql modeSTRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER
definerroot@localhost

Dependency graph

filmfilm_textupd_film

Objects that upd_film depends on

nameobject typelevel
film_texttable1

Code

BEGIN
    IF (old.title != new.title) or (old.description != new.description)
    THEN
        UPDATE film_text
            SET title=new.title,
                description=new.description,
                film_id=new.film_id
        WHERE film_id=old.film_id;
    END IF;
  END



Documentation generated by SqlSpec