题解 | #将所有to_date为9999-01-01的全部更新为NULL#

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

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

【新知识GET!!】
更新某一列的值
update table_name set 列民=新值 where 列名=某个值
【代码如下】
update titles_test set to_date = null, from_date = '2001-01-01' where to_date = '9999-01-01'

全部评论

相关推荐

点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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