http://www.qqread.com/mysql/z341874.html
查詢直接store procedure然后IBATIS里訪問store procedure easy到了極致,連resultset都不用你自己去封裝,直接:
{call P_PPQPWEB_LOGIN.SP_PPQPWEB_LOGIN_CHECKLOGIN
(
#{inputUserId},
#{inputUserPwd},
#{inputUserIP},
#{loginCheck,
mode=OUT,
javaType=java.lang.String,
jdbcType=VARCHAR
},
#{usrCur,
mode=OUT,
javaType=java.sql.ResultSet,
jdbcType=CURSOR,
resultMap=loginDBO
}
)
} 這樣一下,你(List)map.get(userCur)一下,這個LIST就已經給你封裝好了
{usrCur,
mode=OUT,
javaType=java.sql.ResultSet,
jdbcType=CURSOR,
resultMap=loginDBO
}
這邊有一個OUT你看到了吧?
然后你代碼里怎么樣你知道吧?
userInfoList = (List<LoginDBO>) userInfoMap.get("usrCur");
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: FUNCTION rbac-cms.prc_page_result does not exist
http://forums.mysql.com/read.php?46,173826,229449#msg-229449