java - Mybatis how to cross the library query -
i encountered mybatis cross-library problem, know how mybatis cross-library query? such demand wxt_demo library user table , wxt_xot result table uid condition joint query, sql follows:
<select id="selectdata" parametertype="string" resultmap="exportmodel"> select b.`name`,a.answer_data,a.test_score result left join wxt_demo.`user` b on a.student_id=b.id paper_id=#{paperid,jdbctype=char} </select>
but found sql mysql client can run normally, in mybatis wxt_demo.user table whole, resulting in:
mysqlsyntaxerrorexception: table 'com_wxt_demo.user' not exist abnormal information, hope great god given pointing.
Comments
Post a Comment