将所有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
*/

全部评论

相关推荐

11-03 13:18
门头沟学院 Java
包行:平时怎么刷算法题的哇,字节的手撕听说都很难
字节跳动工作体验
点赞 评论 收藏
分享
迷茫的大四🐶:干脆大厂搞个收费培训得了,这样就人均大厂了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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