INSERT INTO user_learning (learning_id, std_id, learning_yn) VALUES (#{learning_id}, #{std_id}, 'N') UPDATE user_learning SET learning_yn = #{learning_yn} WHERE learning_id = #{learning_id}