update titles_test set to_date = null, from_date = '2001-01-01' where to_date = '9999-01-01'
思路:使用update,set语句,注意字符型数据加单引号。