【发布时间】:2012-09-24 06:37:50
【问题描述】:
select t2.s_studentreference
, t1.p_surname
, t1.p_forenames
, t3.e_reference
, t3.e_name
from capd_a t1
right outer join capd_b t2
on (t2.s_id = t1.p_id)
join capd_c t3
on ((t3.e_student=t1.p_id) and (t3.e_reference='D /YR2A2/12'))
我收到此错误:
Syntax Error (Missing Operator) on (t2.s_id = t1.p_id)
join capd_c t3
on ((t3.e_student=t1.p_id) and (t3.e_reference='D /YR2A2/12'))
知道我的查询有什么问题吗?
【问题讨论】:
-
我刚刚发现您正在查询 Oracle 数据库,我建议移动到 ADO 记录集或 通过查询,然后,您可以在 Oracle SQL 中编写查询(对于带有 (+) 的外部连接肯定更好),并且还应该大大提高性能,因为查询将在服务器端运行。