반환 값은 parameterType으로 담긴다.
<insert id="insertContents" parameterType="boardVO" >
<selectKey keyProperty="seq" resultType="String" order="BEFORE">
SELECT IFNULL(MAX(TS.SEQ)+1,1) FROM t_dept TS
</selectKey>
<![CDATA[
INSERT INTO t_dept(
SEQ
, TITLE
, CONT
, RGST_ID
, ATCH_FILE_ID
)
VALUES (
(SELECT IFNULL(MAX(TS.SEQ)+1,1) FROM t_dept TS)
,#{title ,jdbcType=VARCHAR}
,#{cont ,jdbcType=VARCHAR}
,#{loginSeq ,jdbcType=VARCHAR}
,#{atchFileId ,jdbcType=VARCHAR}
)
]]>
</insert>