a字段 b字段
1 1
2 2
3 3
…………
表B
a字段 b字段
1 1
3 3
4 4
…………
怎么关联A,B两表b字段里面相等的出来
结果
1 1
3 3
俺在这先谢了!!
5 个解决方案
#1
用select * from table1 where table.id1 in (select id1 from tableb)
#2
直接用查询设计画面,把表A字段A和表B字段A关联,然后在下面选表A字段A和表B字段B即可。
#3
我接触ACCESS时间不长,
"用select * from table1 where table.id1 in (select id1 from tableb)"
像这样的SQL语句应该在那儿输入,谢了!!!
"用select * from table1 where table.id1 in (select id1 from tableb)"
像这样的SQL语句应该在那儿输入,谢了!!!
#4
上面的方法你用用好了!
#5
SELECT *
FROM [Tbl Choose Pump1] INNER JOIN [Tbl Choose Pump] ON [Tbl Choose Pump1].[Auto Number] = [Tbl Choose Pump].[Auto Number];
写在查询的sql视图中
FROM [Tbl Choose Pump1] INNER JOIN [Tbl Choose Pump] ON [Tbl Choose Pump1].[Auto Number] = [Tbl Choose Pump].[Auto Number];
写在查询的sql视图中
#1
用select * from table1 where table.id1 in (select id1 from tableb)
#2
直接用查询设计画面,把表A字段A和表B字段A关联,然后在下面选表A字段A和表B字段B即可。
#3
我接触ACCESS时间不长,
"用select * from table1 where table.id1 in (select id1 from tableb)"
像这样的SQL语句应该在那儿输入,谢了!!!
"用select * from table1 where table.id1 in (select id1 from tableb)"
像这样的SQL语句应该在那儿输入,谢了!!!
#4
上面的方法你用用好了!
#5
SELECT *
FROM [Tbl Choose Pump1] INNER JOIN [Tbl Choose Pump] ON [Tbl Choose Pump1].[Auto Number] = [Tbl Choose Pump].[Auto Number];
写在查询的sql视图中
FROM [Tbl Choose Pump1] INNER JOIN [Tbl Choose Pump] ON [Tbl Choose Pump1].[Auto Number] = [Tbl Choose Pump].[Auto Number];
写在查询的sql视图中