mysql 时间

create trigger ce after update on t_student for each row
BEGIN
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;

原文地址:https://www.cnblogs.com/mengluo/p/5426784.html