码迷,mamicode.com
首页 > 数据库 > 详细

mysql 时间

时间:2016-04-24 14:05:09      阅读:153      评论:0      收藏:0      [点我收藏+]

标签:

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;

mysql 时间

标签:

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!