算法:遍历外表,将遍历出结果依次在内标中匹配查找

--如果内表无索引,则扫描内表

foreach(row r1 in outerTable)

{

foreach(row r2 in innerTable)     {

if(r1 match r2)         {

output (r1,r2);

}

}

}

--如果内表有索引,则扫描内表索引,大大较少扫描成本

foreach(row r1 in outerTable)

{

if(exist r2 in innerTable match r1)

{

output(r1,r2);

}

}

要求:

1. outerTable较小,最好事先排序,提高检索效率

2. innerTable较小或者innerTable在连接字段上有索引

算法复杂度:outerTable.rowsCount*innerTable.rowsCount

最新文章

  1. linux_shell_5_shell特性_正则_1
  2. iOS 7.1 UITableView添加footerView 后 最后一行分割线无法显示
  3. 关于isset使用产生Can't use function return value in write context错误
  4. 查询processlist具体信息
  5. Bolt 动画
  6. Dev gridControl 按回车增加一行
  7. shell中trap捕获信号
  8. .net mvc RazorEngine 字符串razor参数替换
  9. jquery easyui的datagrid在初始化的时候会请求两次URL?
  10. 为什么很多类甚者底层源码要implements Serializable ?
  11. H5外包团队 2019案例更新
  12. 搭建servlet+jsp环境
  13. (0)HomeAssistant 教程
  14. 利用URLConnection http协议实现webservice接口功能(附HttpUtil.java)
  15. React Native工程修改Android包名
  16. (转)Win7 64位系统下 Retional rose 2003 安装及破解
  17. Template parse errors: The pipe 'translate' could not be found
  18. Top K Frequent Elements 前K个高频元素
  19. Web - TCP与UDP的差别
  20. .net学习-扩展

热门文章

  1. Resetting the Root Password Using rd.break for RHEL7
  2. zookeeper的概念和基础
  3. teamviewer14商用试用期到期从新安装使用
  4. IIS Manager 配置文件修该,允许跨域CORS访问
  5. kaptcha验证码组件使用简介
  6. [iOS]在xcode的iOS虚拟机中对BLE(蓝牙4.0)进行调试
  7. Spark-Mllib中各分类算法的java实现(简易教程)
  8. linux下项目开发加载动态库:ldconfig与 /etc/ld.so.conf
  9. Unity几个有用的游戏运动特效
  10. Ros学习——movebase源码解读之amcl