对查询结果进行更新,可以直接在查询语句后加 for update, 如红字所示select * from journalarticle t where t.groupid = 15 for update