题解 | #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'
查看2道真题和解析