update cq_item, cq_pk_bonus set cq_item.player_id = cq_pk_bonus.target_id, cq_item.owner_id = 1005, cq_item.POSITION = 201, cq_pk_bonus.bonus = 1 Where cq_pk_bonus.item_id = cq_item.id; delete from cq_pk_bonus where bonus = 1;