insert into question_title_value(
score,value_id,title_id,community_id,qa_value,seq
) values (
#{score},#{valueId},#{titleId},#{communityId},#{qaValue},#{seq}
)
update question_title_value t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.score= #{score}
, t.qa_value= #{qaValue}
, t.seq= #{seq}
where 1=1
and t.value_id= #{valueId}
and t.title_id= #{titleId}
and t.community_id= #{communityId}