博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
append的问题
阅读量:6992 次
发布时间:2019-06-27

本文共 455 字,大约阅读时间需要 1 分钟。

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 =? ");

 

转载于:https://www.cnblogs.com/justfuck/p/6013224.html

你可能感兴趣的文章
UML时序图总结
查看>>
【2013Esri全球用户大会精彩案例】Horry Count GIS--南卡罗来那州霍里县企业级应用...
查看>>
c++虚函数表 Brew VTBL
查看>>
SQL Server 2008开启sa账户以及如何用JDBC进行连接
查看>>
读取同一文件夹下多个txt文件中的特定内容并做统计
查看>>
为sourceinsight添加makefile、kconfig、*.S文件支持
查看>>
sharepoint2010问卷调查(1)-实现问卷的图片调查(采用JS实现)
查看>>
linux下如何挂接(mount)光盘镜像文件、移动硬盘、U盘、Windows网络共享和NFS网络共享...
查看>>
python开发_函数的参数传递
查看>>
利用mysqldump 实现每天备份方案
查看>>
一周一世界,一世一漂泊
查看>>
屏保:画圈圈诅咒你
查看>>
(转)连接(内、左、右、外、交叉)查询
查看>>
基于Flot可放缩的折线图
查看>>
Redis debugging guide---官方
查看>>
LINQ
查看>>
微信支付宝
查看>>
Android下用Activity实现圆角的自定义弹窗
查看>>
MAVEN创建JAVA的Web工程
查看>>
paip.提升效率--gui 的选择--swing最佳实践swt awt
查看>>