1、简单update
update gqj_gqjbook set IS_REPEAT = 0
2、根据一张表更新另一张表 update
update tablea a, tableb b set a.bname=b.name where a.bid=b.id and a.id between 262 and 271
update tablea a inner join tableb b on a.bid=b.id set a.bname=b.name where a.id between 262 and 271
between 是>= and <=,即包含两个边界
3、update 累加 1
update gqj_icode_index set CODE_INDEX = CODE_INDEX + 1