将所有to_date为9999-01-01的全更新为NULL

将所有to_date为9999-01-01的全部更新为NULL

https://www.nowcoder.com/practice/859f28f43496404886a77600ea68ef59

update titles_test
set to_date=null,from_date='2001-01-01'

/* 更新为空值,columnname=null,不是columnname is null
update tablename
set columnname1=值,columnname2=值,...
where condition
*/

全部评论

相关推荐

不愿透露姓名的神秘牛友
05-28 12:15
点赞 评论 收藏
分享
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务