有关prepareStatement的问题? String ip = "10.11.0.1"pstmt.setString(1, str_ip)参数不对! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不好意思,写错了,String strSQL="select * from tm_hour_statistics where ip=? order by collecttime";String ip = "10.11.0.1";try{ con = ConnectionManager.getConnection(); pstmt = con.prepareStatement(strSQL); pstmt.setString(1, ip); ResultSet rs = pstmt.executeQuery();.....执行结果 rs没有记录String strSQL="select * from tm_hour_statistics where ip='10.11.0.1' order by collecttime";try{ con = ConnectionManager.getConnection(); pstmt = con.prepareStatement(strSQL); //pstmt.setString(1, ip); ResultSet rs = pstmt.executeQuery();.....执行结果 rs有记录难道 setString 不能传带点的字符串吗? TO beijingwhitney(beijing) 什么意思? iterator标签消失 学jsp的问题。。。。 jsp 两个下拉框联动 关于hiberante annotations 复合主键的问题! java文件下载问题...急啊! jsp页面的问题? 为什么我不能这样用??? document.ff.ceng.value 求:JSP+JavaBean的报表及报表的打印功能的例子, java.lang.ClassNotFoundException 连接数据库的 问题? 如果表单中的sex的value是整型我在处理页应该如何得到它的值? 关于中文显示乱码的问题?
String strSQL="select * from tm_hour_statistics where ip=? order by collecttime";
String ip = "10.11.0.1";try{
con = ConnectionManager.getConnection();
pstmt = con.prepareStatement(strSQL);
pstmt.setString(1, ip);
ResultSet rs = pstmt.executeQuery();
.....
执行结果 rs没有记录String strSQL="select * from tm_hour_statistics where ip='10.11.0.1' order by collecttime";try{
con = ConnectionManager.getConnection();
pstmt = con.prepareStatement(strSQL);
//pstmt.setString(1, ip);
ResultSet rs = pstmt.executeQuery();
.....
执行结果 rs有记录难道 setString 不能传带点的字符串吗?
什么意思?