2010-07-21 45 views

回答

2

像這樣:

<procedure id="getUserEmail" 
    parameterClass="java.lang.String" resultClass="java.lang.String"> 
    {call SP_getUserEmail(#username#)} 
</procedure> 
0

應該是這樣的MyBatis的3:

<update id="myProcCall" parameterType="map" statementType="CALLABLE"> 
    {  
     call MY_PROC(#{param1, javaType=String, jdbcType=VARCHAR, 
     mode=IN},#{param2, javaType=String, jdbcType=VARCHAR, 
     mode=IN) 
    } 
</update>