String sql="select * from book where name like '%"+?+"%'";错误在哪?
Exceptioninthread"main"java.lang.Error:Unresolvedcompilationproblems:Syntaxerrorontok...
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
Syntax error on token "?", delete this token
The operator + is undefined for the argument type(s) String
at com.dao.impl.BookDaoImpl.selectByNameD(BookDaoImpl.java:210)
at com.dao.impl.BookDaoImpl.main(BookDaoImpl.java:26) 展开
Syntax error on token "?", delete this token
The operator + is undefined for the argument type(s) String
at com.dao.impl.BookDaoImpl.selectByNameD(BookDaoImpl.java:210)
at com.dao.impl.BookDaoImpl.main(BookDaoImpl.java:26) 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询