INSERT INTO product_custom (product_id, option_type, option_value, price_adjust) VALUES (#{productId}, #{optionType}, #{optionValue}, #{priceAdjust}) UPDATE product_custom SET option_type = #{optionType}, option_value = #{optionValue}, price_adjust = #{priceAdjust} WHERE id = #{id} DELETE FROM product_custom WHERE id = #{id} DELETE FROM product_custom WHERE product_id = #{productId}