解决方案 »

  1.   

    楼主前几天还在玩 mybatis,现在转战 ibatis 了。
    这个不是 ibatis 的问题,是你的 sql 没写对。你先用你整理的 sql,能正确执行了,再写进 ibatis 配置项。
    参考:
    http://blog.chinaunix.net/uid-23284114-id-3466252.html
      

  2.   

    就是这句话有问题,但是我又不知道怎么改select b.sqname from t_access_community b where community_code=b.community_code) as communityName
      

  3.   

    select b.sqname from t_access_community b where community_code=b.community_code) as communityName
    这句话怎么还整出半个括号了,请把完整的sql的语句帖上来吧。
      

  4.   

    你给的那条sql,查询一次应该只返回一条记录才对,有可能是数据库中存在重复数据,或者漏了某些条件。。