INSERT INTO cart (user_id, product_id, spec_id, quantity, custom_sweetness, custom_ice, toppings) VALUES (#{userId}, #{productId}, #{specId}, #{quantity}, #{customSweetness}, #{customIce}, #{toppings}) UPDATE cart quantity = #{quantity}, custom_sweetness = #{customSweetness}, custom_ice = #{customIce}, toppings = #{toppings}, WHERE id = #{id} UPDATE cart SET quantity = #{quantity} WHERE id = #{id} DELETE FROM cart WHERE id = #{id} DELETE FROM cart WHERE user_id = #{userId} DELETE FROM cart WHERE id IN #{id} AND user_id = #{userId}