SQL语句

时间:2020-01-03 16:27:14   收藏:0   阅读:84

条件不同值不同更新语句

update `testtime` t2 set type = (select case when t2.date1>t2.date2 then 1 else 0 end) where t2.id = 1

原文:https://www.cnblogs.com/gflyx/p/12145274.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!