create trigger ce after update on t_student for each rowBEGIN select stu_id,stu_name,NOW() into @v,@v2,@time from t_student where stu_id=old.stu_id; insert into t_student_time(stu_id,times)values(@v,@time);end;