太久不写SQL语句就会忘记了
update 表名 set to_date=null,from_date='2001-01-01' where to_date='9999-01-01'
#错误点有三个,第一忘记了where条件,第二更新两列值时,用逗号隔开,第三改成null时,不用加引号。