INSERT INTO text (text_id
,text_ttl
,text_cnt
,text_url
,reg_dt
,file_mng_id
,text_type_id
,user_id
) VALUES (#{textId}
,#{textTtl}
,#{textCnt}
,#{textUrl}
,now()
,#{fileMngId}
,#{textTypeId}
,#{userId}
);
UPDATE text
SET text_ttl = #{textTtl}
, text_cnt = #{textCnt}
, text_url = #{textUrl}
, file_mng_id = #{fileMngId}
, text_type_id = #{textTypeId}
WHERE text_id = #{textId}
DELETE FROM text
WHERE text_id = #{textId}