public ArrayList getSearchResult (String code) выдает SQLException {
String sql="SELECT * FROM "+ tableName + "WHERE UPPER(pName) LIKE ?";
ArrayList<Product> productList = new ArrayList<Product>();
Product p = null;
String code1 = code.toUpperCase();
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,"%" + code1 + "%");
ResultSet rs = pstmt.executeQuery();
while(rs.next()){
p = new Product(rs.getString("pID"),rs.getString("pName"),rs.getString("pColor"),rs.getInt("pSize"),rs.getDouble("pPrice"),rs.getInt("pQty"),rs.getString("pImg"),rs.getString("pUrl"));
productList.add(p);
}
return productList;
}
Ошибка, возникающая при запуске кода Java