DROP TRIGGER IF EXISTS `upd_patientquestionnaire`; create trigger upd_patientquestionnaire BEFORE insert on patientquestionnaire for each row begin set new.CreateTime = now();end;