第6行错误ora-00933 sql命令未正确结束

第6行错误ora-00933 sql命令未正确结束,sql,oracle,Sql,Oracle,表: Qns:接受Brian医生治疗或长期咨询的患者姓名 我的回答: Patient (PatientID, FamilyName, GivenName, Address, Suburb, State, PostCode) Doctor (ProviderNo, Name) Item (ItemNo, Description, Fee) Account (AccountNo, ProviderNo, PatientID, Date) AccountLine (AccountNo, ItemNo

表:

Qns:接受Brian医生治疗或长期咨询的患者姓名

我的回答:

Patient (PatientID, FamilyName, GivenName, Address, Suburb, State, PostCode) 
Doctor (ProviderNo, Name)
Item (ItemNo, Description, Fee)
Account (AccountNo, ProviderNo, PatientID, Date)
AccountLine (AccountNo, ItemNo)

我哪里出错了

您已经有了一个
WHERE
子句,因此重复的子句导致了错误。如果要添加条件,请使用布尔运算符

MyError: WHERE D.NAME = 'Dr Brian' or I.Description = 'Extended Consultation'
* ERROR at line 6: ORA-00933: SQL command not properly ended

您已经有一个
WHERE
子句,因此重复的子句会导致错误。如果要添加条件,请使用布尔运算符

MyError: WHERE D.NAME = 'Dr Brian' or I.Description = 'Extended Consultation'
* ERROR at line 6: ORA-00933: SQL command not properly ended
AND (D.NAME = 'Dr Brian' OR I.Description = 'Extended Consultation')