PostgreSQL 8.2.3 婺桺桺懼
劯锔媆锔䆹2. SQL 臺蘔媆誕嬉誕

2.8. 敘桄

嘹埇傖䫘 UPDATE 变傴敘桄䯄橬䔇臯㔗啺螆嘹埏䯄欔橬 11 橽 28 斖䔇橷庥螇昄鄘嘯庖婴庥闼幽嘹儌埇傖䫘婋麵䔇桹嚟敘桄昄扞

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
---------------+---------+---------+------+------------
 San Francisco |      46 |      50 | 0.25 | 1994-11-27
 San Francisco |      41 |      55 |    0 | 1994-11-29
 Hayward       |      35 |      52 |      | 1994-11-29
(3 rows)

劯锔饡釕嬉誕
蕔镖庘昄婪婔亓役鍴