首页 > 数据库 > mysql教程 > mysql-SSM 查询结果COUNT返回 变成 COUNT=[B@6b522f02,

mysql-SSM 查询结果COUNT返回 变成 COUNT=[B@6b522f02,

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
发布: 2016-06-06 09:34:41
原创
1301 人浏览过

mysqlssmcount()乱码

贴上xml--sql 语句

<code> select FUSID,REALNAME,MOBILE,COMPANY,COMPANYWORK,COUNT from (    SELECT psf.FUSID,pam.REALNAME,pam.MOBILE,pam.COMPANY,pam.COMPANYWORK,count(psf.FUSID)  as COUNT from PRE_SHAPP_FRIENDS psf JOIN PRE_AL_MEMBER pam ON pam.USID = psf.FUSID    where psf.USID in (select FUSID from PRE_SHAPP_FRIENDS_STATUS where STATUS = 2 and USID = #{USID}) group  BY FUSID    UNION ALL    select USID,REALNAME,MOBILE,COMPANY,COMPANYWORK,'' as COUNT from PRE_AL_MEMBER     where USERNAME in (select USERNAME from PRE_AL_SHMEMBER where ISACTIVATION = 2) AND USID NOT IN (SELECT FUSID from PRE_SHAPP_FRIENDS     where USID in (select FUSID from PRE_SHAPP_FRIENDS_STATUS where STATUS = 2 and USID = #{USID}))) as temp ORDER BY COUNT desc limit ${x},10</code>
登录后复制

数据库结果是:
图片说明

Java 后台结果:
图片说明

求问题解决!!

相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板