行!
不过建议用preparedStatement.
不过建议用preparedStatement.
解决方案 »
- Hibernate与oracle clob字段的问题
- 关于Hibernate<generator class="sequence" >的问题
- 关于jsp(或html)表单数据提交到后台java类
- 求 struts2 optiontransferselect 取object对象 (在线等)
- 求JSP中request.getRealPath()和application.getRealPath()的详尽用法
- tomact如何配置
- java如何取得UNIX时间 如 1162017434
- 急!在线等!!!java面试题-谁写的详细分全给他,不够再加!
- j2se又是做什么用的?开发jsp的ide是什么?
- 问个小白问题,csdn上评论怎么插入的图片?
- jsp初学者请教!javabean 的scope问题!
- 我用resin不能用out.close();在tomcat里正常
这句有问题吧
%应该在'''里面啊
String sql="select * from book where bookname like '%"+str+"'";
String sql="select * from book where bookname like '%"+str+"%'";
select au_name from authour where au_name like 'D%'所有的条件都要在''里边!!!所以你的%应该在''里边才是!