大家早上好,
我正在尝试通过 ODBC 将这个传递查询传递给我们的 Oracle 数据库,以便在 Access 2003 中工作,但它给出了“JOIN 操作中的语法错误”:
SELECT "WO_OPERATION"."SI_NUMBER",
"WO_TASK"."SEQUENCE",
"WO_STATUS"."DESCRIPTION",
"APPLICATION_CODES"."APPLICATION_CODE"
FROM ("QCTL"."WO_TASK_STATUS" "WO_TASK_STATUS"
INNER JOIN ((("QCTL"."WO_OPERATION" "WO_OPERATION"
INNER JOIN "QCTL"."WO_TASK" "WO_TASK" ON "WO_OPERATION"."WOO_AUTO_KEY"="WO_TASK"."WOO_AUTO_KEY")
INNER JOIN "QCTL"."PARTS_MASTER" "PARTS_MASTER" ON "WO_OPERATION"."PNM_AUTO_KEY"="PARTS_MASTER"."PNM_AUTO_KEY")
INNER JOIN "QCTL"."APPLICATION_CODES" "APPLICATION_CODES" ON "PARTS_MASTER"."APC_AUTO_KEY"="APPLICATION_CODES"."APC_AUTO_KEY") ON "WO_TASK_STATUS"."WOT_AUTO_KEY"="WO_TASK"."WOT_AUTO_KEY")
INNER JOIN "QCTL"."WO_STATUS" "WO_STATUS" ON "WO_TASK_STATUS"."WOS_AUTO_KEY"="WO_STATUS"."WOS_AUTO_KEY"
WHERE ("WO_TASK"."SEQUENCE"=120
OR "WO_TASK"."SEQUENCE"=172)
AND ("APPLICATION_CODES"."APPLICATION_CODE"='OEM'
OR "APPLICATION_CODES"."APPLICATION_CODE"='PL')
AND "WO_STATUS"."WOS_AUTO_KEY" =3
ORDER BY "WO_OPERATION"."SI_NUMBER",
"WO_TASK"."SEQUENCE"
该查询在 Oracle 数据库中运行良好,另一个传递查询也运行良好。当 Access 抛出错误时,它会在这一行中选择 DOT:
FROM ("QCTL"."WO_TASK_STATUS" "WO_TASK_STATUS"............................
我不知道出了什么问题,这里有人有鹰眼吗?:)
谢谢!
抢