Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ms-access/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ms access 在Access中联接表_Ms Access_Join - Fatal编程技术网

Ms access 在Access中联接表

Ms access 在Access中联接表,ms-access,join,Ms Access,Join,我在Microsoft Access中有两个表 表1 id_customer,id_city,city,qty 123,045,New York,45 JOIN expression not supported 表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)

我在Microsoft Access中有两个表

表1

id_customer,id_city,city,qty
123,045,New York,45
JOIN expression not supported
表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;
错误:

id_customer,id_city,city,qty
123,045,New York,45
JOIN expression not supported

请更正我的问题,谢谢。看起来您只是缺少了一些空格。尝试:

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