请问这个join需求怎么实现?

wonkju 2014-12-12 01:15:14
我的 表1中有字段(id,count),
记录诸如:
id count
0 188
1 167
2 373
3 378
4 377
表二也有同样的字段,记录有的id不同,
请问我该怎么合并他们呢?根据id.
因为我查一下,发现Access不支持 full outer join,好难搞,
通过编程的方式,有感觉有点牛刀小试...我总觉得Access应该不会那么笨吧?

...全文
207 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
wonkju 2015-01-18
  • 打赏
  • 举报
回复
引用 1 楼 ACMAIN_CHM 的回复:
select * from a left join b on a.id=b.id union all select * from a right join b on a.id=b.id where a.id is null
解决了,感谢版主.结贴了...
ACMAIN_CHM 2014-12-12
  • 打赏
  • 举报
回复
select * from a left join b on a.id=b.id union all select * from a right join b on a.id=b.id where a.id is null

7,732

社区成员

发帖
与我相关
我的任务
社区描述
Microsoft Office Access是由微软发布的关系数据库管理系统。它结合了 MicrosoftJet Database Engine 和 图形用户界面两项特点。
社区管理员
  • Access
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧