0

我在 Microsoft Access 中有两个表

表格1

id_customer,id_city,city,qty
123,045,New York,45

表_2

id,name
12345,Audy
54321,Steve

在 Ms. Access 中查询

SELECT * FROM  table_1 RIGHT JOIN table_2 ON table_1.id_customer&MID(table_1.id_city,2,2)=table_2.id;

错误 :

JOIN expression not supported

请更正我的查询并在此之前感谢

4

1 回答 1

0

看起来您只是缺少一些间距。尝试:

SELECT * 
FROM table_1 AS t1
  RIGHT JOIN table_2 AS t2
  ON ((t1.id_customer & MID(t1.id_city, 2, 2)) = t2.id)
于 2013-11-12T02:58:08.660 回答