a.id AS "id", a.create_by AS "createBy.id", a.create_date AS "createDate", a.update_by AS "updateBy.id", a.update_date AS "updateDate", a.remarks AS "remarks", a.del_flag AS "delFlag", a.title AS "title", a.contents AS "contents" INSERT INTO test_note( id, create_by, create_date, update_by, update_date, remarks, del_flag, title, contents ) VALUES ( #{id}, #{createBy.id}, #{createDate}, #{updateBy.id}, #{updateDate}, #{remarks}, #{delFlag}, #{title}, #{contents} ) UPDATE test_note SET update_by = #{updateBy.id}, update_date = #{updateDate}, remarks = #{remarks}, title = #{title}, contents = #{contents} WHERE id = #{id} DELETE FROM test_note WHERE id = #{id} UPDATE test_note SET del_flag = #{DEL_FLAG_DELETE} WHERE id = #{id}