delete from cable where id = #{id}; update cable e set e.install_date = #{installDate}, e.expiration_date = #{expirationDate}, e.address = #{address}, e.type = #{type}, e.name = #{name} where 1=1 and e.lamp_pole_id = #{lampPoleId} and e.id = #{id}