Hi,

if I use the block below "<selectKey" statement is executed before INSERT.

Any ideas? I use ibatis ibatis-2.1.5.582

        <insert id="createSccCommit" parameterClass="sccCommitDto">
                <include refid="createSccCommitStatement" />

                <selectKey resultClass="java.lang.Integer" keyProperty="id"
>
                        SELECT LAST_INSERT_ID()
                </selectKey>
        </insert>

Zsolt



Reply via email to