INSERT INTO formtable ( `FORMID`, `JSONOBJ`, `flag` ) VALUES ( #{form.formID}, #{form.jsonObj}, #{form.flag} ); UPDATE formtable SET `JSONOBJ` = #{form.jsonObj} WHERE FORMID = #{form.formID} DELETE FROM formtable WHERE FORMID = #{formId}