help me with the below issue please. With the below code
if (con == null || con.isClosed()) con = DBBase.getNewConnection();
sb = con.createStatement();
resSet = sb.executeQuery("select * from USERSAGGRS where userid='" +user.getUserid()+ "' AND id='" +aggid+ "' ");
when load jsp page I get this error:
java.sql.SQLException: ORA-00933: SQL command not properly ended