我在Microsoft Access中有两个表
表_1
id_customer,id_city,city,qty
123,045,New York,45
TABLE_2
id,name
12345,Audy
54321,Steve
在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
请在
之前更正我的疑问和谢意答案 0 :(得分: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)