0

访问 2010

这很好用:

SELECT aa.recid,
       aa.account_clid,
       bb.code AS type,
       aa.number,
       aa.company,
       aa.product,
       aa.status
FROM  (  [account] AS aa
RIGHT JOIN [account_types] AS bb ON aa.[type]    = bb.[account_code]  )

而这,令人发指的是,抛出臭名昭著的“不支持 JOIN 表达式”味精

SELECT aa.recid,
       aa.account_clid,
       bb.code AS type,
       aa.number,
       aa.company,
       aa.product,
       aa.status,
       cc.code AS stattus
FROM  (  [account] AS aa
RIGHT JOIN [account_types] AS bb ON aa.[type]    = bb.[account_code]  )
RIGHT JOIN [account_codes] AS cc ON aa.[status2] = cc.[account_code]

有人会告诉我我(或 Access)做错了什么吗?

TIA,

仍在学习的史蒂夫

4

1 回答 1

0

没关系,我应该使用左连接而不是右连接。

谢谢大家,

结案

仍在学习的史蒂夫

于 2013-08-13T17:50:17.247 回答