INSERT INTO tb_questions (
question_id,
survey_id,
question_text,
question_type,
question_order,
is_required
) VALUES (
#{questionId, jdbcType=OTHER},
#{surveyId, jdbcType=OTHER},
#{questionText},
#{questionType},
#{questionOrder},
#{isRequired}
)
UPDATE tb_questions
SET
question_text = #{questionText},
question_type = #{questionType},
question_order = #{questionOrder},
is_required = #{isRequired}
WHERE question_id = #{questionId, jdbcType=OTHER}
DELETE FROM tb_questions
WHERE question_id = #{questionId, jdbcType=OTHER}