首页 > 移动平台 > 详细

append的问题

时间:2016-10-30 16:52:49      阅读:275      评论:0      收藏:0      [点我收藏+]

Exception in thread "main" com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘=‘小美‘‘ at line 1

 

sb.append("select * from imooc_goddess");
        sb.append("where user_name =?");

报错

加个空格就解决了

sb.append(" select * from imooc_goddess ");
        sb.append(" where user_name =? ");

 

append的问题

原文:http://www.cnblogs.com/justfuck/p/6013224.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!