# 2.8.

更新您可以使用更新命令。假设您发现 11 月 28 日之后温度读数全部偏离了 2 度。您可以按如下方式更正数据:

UPDATE weather
    SET temp_hi = temp_hi - 2,  temp_lo = temp_lo - 2
    WHERE date > '1994-11-28';

查看数据的新状态:

SELECT * FROM weather;

     city      | temp_lo | temp_hi | prcp |    date