但好像应该改成这样,你看看.
select a.*" +
" from DPatientInfo a left join " +
" DPatientCaseInfo b on a.nid = b.patient.nid left join " +
" DDoctorInfo c on b.doctor.nid = c.nid left join " +
" DHospitalInfo d on c.医院ID=d.医院ID where c.hospital.nid = 34
StringBuffer sqlBuffer=new StringBuffer("select a" +
" from DPatientInfo a left join " +
" DPatientCaseInfo b where a.nid = b.patient.nid left join " +
" DDoctorInfo c where b.doctor.nid = c.nid left join " +
" DHospitalInfo d where c.hospital.nid = 34");