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