题解 | #43#

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

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

考察点:带条件的修改多列数据
update 表名 set 列名A = 值,列名B=值 [where 条件表达式:字段名 = 值 ]
错点:更新为NULL 用=NULL 而是不 is null

update titles_test
set from_date ='2001-01-01',to_date= NULL
where to_date='9999-01-01'

全部评论

相关推荐

NBA球星伦纳德:jd是这样的,工作连拧螺丝都算不上
点赞 评论 收藏
分享
评论
点赞
1
分享

创作者周榜

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