我需要一个算法或伪代码用于内连接,左外连接和右外连接 [英] I need a algorithm or pseudocode for inner join,left outer join and right outer join

查看:91
本文介绍了我需要一个算法或伪代码用于内连接,左外连接和右外连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请提供逻辑以便在2个文件上执行连接

Please provide logic inorder to perform join on 2 files

推荐答案

哦,我明白了。您不能在文件上使用SQL,而是需要读取它们并进行比较。字典(C ++中的映射)是使用密钥将一个文件中的数据与另一个文件中的数据相关联的最佳方式。当你问C ++,C和Java时,我认为你不知道你想要做什么。
Oh, I see. You can't use SQL on files, you need instead to read them and compare them. A dictionary ( map in C++ ) is the best way to use a key to associate data in one file with data in another. As you asked for C++, C and Java, I assume you have no idea what you are trying to do.


这篇关于我需要一个算法或伪代码用于内连接,左外连接和右外连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆