Skip to content

Instantly share code, notes, and snippets.

@springcome
Created October 15, 2013 08:45
Show Gist options
  • Select an option

  • Save springcome/6988593 to your computer and use it in GitHub Desktop.

Select an option

Save springcome/6988593 to your computer and use it in GitHub Desktop.
ibatis - insert selectKey
<insert id="insertBoard" parameterClass="BoardBean">
insert into board (
board_title
, board_content
) values (
#boardTitle#
, #boardContent#
)
<selectKey keyProperty="boardSeq" resultClass="int">
select last_insert_id()
</selectKey>
</insert>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment