select objid, type, reference_location, location_description, power_source, battery_type, remarks, image_location, first_instance, second_instance, third_instance, fourth_instance, fifth_instance, sixth_instance, seventh_instance, eighth_instance, ninth_instance, tenth_instance, eleventh_instance, twelfth_instance from power_energy_spare_parts_registration insert into power_energy_spare_parts_registration type, reference_location, location_description, power_source, battery_type, remarks, image_location, first_instance, second_instance, third_instance, fourth_instance, fifth_instance, sixth_instance, seventh_instance, eighth_instance, ninth_instance, tenth_instance, eleventh_instance, twelfth_instance, #{type}, #{referenceLocation}, #{locationDescription}, #{powerSource}, #{batteryType}, #{remarks}, #{imageLocation}, #{firstInstance}, #{secondInstance}, #{thirdInstance}, #{fourthInstance}, #{fifthInstance}, #{sixthInstance}, #{seventhInstance}, #{eighthInstance}, #{ninthInstance}, #{tenthInstance}, #{eleventhInstance}, #{twelfthInstance}, update power_energy_spare_parts_registration type = #{type}, reference_location = #{referenceLocation}, location_description = #{locationDescription}, power_source = #{powerSource}, battery_type = #{batteryType}, remarks = #{remarks}, image_location = #{imageLocation}, first_instance = #{firstInstance}, second_instance = #{secondInstance}, third_instance = #{thirdInstance}, fourth_instance = #{fourthInstance}, fifth_instance = #{fifthInstance}, sixth_instance = #{sixthInstance}, seventh_instance = #{seventhInstance}, eighth_instance = #{eighthInstance}, ninth_instance = #{ninthInstance}, tenth_instance = #{tenthInstance}, eleventh_instance = #{eleventhInstance}, twelfth_instance = #{twelfthInstance}, where objid = #{objid} delete from power_energy_spare_parts_registration where objid = #{objid} delete from power_energy_spare_parts_registration where objid in #{objid}