UPDATE titles_test
SET to_date = NULL,
    from_date = '2001-01-01'
where to_date = '9999-01-01';

虽然都很简单,但是这就是我欠缺的。

之前没有怎么做过更新、删除数据,创建、更新表格的操作。