标签:问题 空格 where app read name rom exception ons
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 =? ");
标签:问题 空格 where app read name rom exception ons
原文地址:http://www.cnblogs.com/justfuck/p/6013224.html