使用mysql能查询结果,executeQuery返回null

MySql 码拜 9年前 (2015-09-21) 1547次浏览

sql语句:

select * from buy_article where id <= 30 and address like “”%深圳%”” order by id desc limit 15

这是在mysql里的查询结果

使用mysql能查询结果,executeQuery返回null

这是查询代码,,返回的ResultSet是NULL

使用mysql能查询结果,executeQuery返回null

#1

30分

检查字符集设置。

   按下贴中的方法检查字符集设置。并贴出以供分析。

   

   http://blog.csdn.net/ACMAIN_CHM/archive/2009/05/12/4174186.aspx

MySQL 中文显示乱码

#3

回复1楼:

设置了JDBC链接时候的字符集就正常了


CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明使用mysql能查询结果,executeQuery返回null
喜欢 (0)
[1034331897@qq.com]
分享 (0)