ps=con.prepareStatement("select * from REGISTER inner join ORGAN on REGISTER.PATIENTID=ORGAN.PATIENTID where ORGAN.ORGAN LIKE ?");
ps.setString(1,"'%"+o.getOrgan()+"%'");
我在SQL Developer中执行了查询,结果很好,但在DAO类中它没有返回任何结果集。
ps=con.prepareStatement("select * from REGISTER inner join ORGAN on REGISTER.PATIENTID=ORGAN.PATIENTID where ORGAN.ORGAN LIKE ?");
ps.setString(1,"'%"+o.getOrgan()+"%'");
我在SQL Developer中执行了查询,结果很好,但在DAO类中它没有返回任何结果集。
ps.setString(1, "%" + o.getOrgan() + "%");