select EA.a,EB.b,EC.e from 实体A EA,实体B EB,实体C EC where EA.a = EB.d and EB.d = EC.h and EC.g=?
条件都列的这么清楚了。后面就是直接拼接sql了。
"select a.patientId,a.patiname,a.sex,a.birthdate,a.outtime,b.patiTypeCd,b.ghTypeCd,b.newpatiFlg,b.regiDate from SaaPatient a,SmzGhrec b,SmzPatidiagrec c where a.patientId=b.patientId and b.patientId=c.patientId and c.diagdoct=?" 这个哪里错了?
这个哪里错了?