# 需要注意的是set后面的内容用逗号隔开,而不是and
update  titles_test tt
set tt.to_date=null,tt.from_date='2001-01-01'
where  tt.to_date='9999-01-01'