UPDATE titles_test
SET to_date = NULL,
from_date = '2001-01-01'
WHERE to_date = '9999-01-01'; 易混点:case是返回值,而update 是更新值操作。