level 3
双子littleboy
楼主
关键代码
String sql = "select * from wuliu.order where orderid = ? ";
PreparedStatement ps = conn.prepareStatement(sql);
ps.setInt(1,Integer.parseInt(orderid));
ResultSet rs=ps.executeQuery(sql);
错误信息: 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
2013年07月01日 02点07分
1
String sql = "select * from wuliu.order where orderid = ? ";
PreparedStatement ps = conn.prepareStatement(sql);
ps.setInt(1,Integer.parseInt(orderid));
ResultSet rs=ps.executeQuery(sql);
错误信息: 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