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;

posted @ 2016-04-24 12:52  尘梦  阅读(88)  评论(0编辑  收藏  举报