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


执行了一个普通的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总是为当前时间,傻眼了;后来发现这里有问题:

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

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM