修改记录:
update table_name as a
set a.type = ‘青年'
where a.age>18 and a.age<40
解释:将表中age字段大于18小于40的type字段改成’青年‘
注:在使用update时,必须使用where子句,否则将会修改所有记录的字段值。