首页 > 其他 > 详细

update 默认值 更新总是当前时间

时间:2020-02-21 21:59:10      阅读:167      评论:0      收藏:0      [点我收藏+]

执行了一个普通的sql:

update discount_info  set discount_show_name="ss" where tenant_id=15203 and discount_id =155002

发现每次 discount_start_time_new 和discount_end_time_new总是为当前时间,傻眼了;后来发现这里有问题:

设置了,当更新的时候,默认当前时间了:

 

技术分享图片

 

update 默认值 更新总是当前时间

原文:https://www.cnblogs.com/aspirant/p/12342973.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!