QNS:项目说明和名为杰西施坦格任何病人所有的治疗治疗日期(即给定名称是杰西& FamilyName是施坦格)SQL错误:ORA-00936:缺少表达
我写道:
SELECT DISTINCT Description, Date as treatmentDate
WHERE doothey.Patient P, doothey.Account A, doothey.AccountLine AL, doothey.Item.I
AND P.PatientID = A.PatientID
AND A.AccountNo = AL.AccountNo
AND AL.ItemNo = I.ItemNo
AND (p.FamilyName = 'Stange' AND p.GivenName = 'Jessie');
错误:
Error at Command Line:1 Column:30
Error report:
SQL Error: ORA-00936: missing expression
00936. 00000 - "missing expression"
*Cause:
*Action:
什么是缺失的表达?
每个SELECT语句都有三个部分:“SELECT-> FROM-> WHERE”。如果你想返回整个记录集,可以省略WHERE。 你的FROM在哪里? – Satanicpuppy