创建upflow表

create external table mydb2.upflow (ip string,sum string) row format delimited fields terminated by ',';

 select ip,sum(upflow) as sum from mydb2.access group by ip order by sum desc;

将表access里面的内容导入到upflow表中

insert into  mydb2.upflow  select ip,sum(upflow) as sum from mydb2.access group by ip order by sum desc;

最新文章

  1. dict
  2. 使用Spring.net中对Ado.net的抽象封装来访问数据库
  3. HTMl中Meta标签详解以及meta property=og标签含义
  4. [51NOD1090] 3个数和为0(水题,二分)
  5. 深入解读saltstack的安装及配置1
  6. 徐汉彬:亿级Web系统搭建——单机到分布式集群(转载)
  7. JavaScript中的*top、*left、*width、*Height详解
  8. fork和exec函数
  9. 游戏开发设计模式之原型模式 & unity3d JSON的使用(unity3d 示例实现)
  10. Spring与SpringMVC的容器关系分析
  11. VC++6.0 下配置 pthread库2010年12月12日 星期日 13:14VC下的pthread多线程编程 转载
  12. 发几个速度快可以用的google IP,谷歌IP(转)
  13. Oracle EBS-SQL (PO-18):检查工作台下达的PR在系统找不到.sql
  14. PHPer的等级划分
  15. JSON.stringify 应用
  16. Adobe阅读器漏洞(adobe_cooltype_sing)学习研究
  17. Laravel 系列入门教程(二)【最适合中国人的 Laravel 教程】
  18. linux 中 如何 搜索 指定目录 下 指定文件 的 指定内容
  19. can't access lexical declaration `a' before initialization
  20. 如何用 async 控制流程

热门文章

  1. Xilinx的IP核接口命名说明
  2. 记录一:tensorflow下载安装
  3. tensorflow实现siamese网络 (附代码)
  4. msbuild不是内部或外部命令
  5. python 绘制f(x)=x^2
  6. python 装饰器,传递类以及参数
  7. Pytest学习笔记(三) 在代码中运行pytest
  8. shell脚本中根据端口号kill对应的应用进程
  9. Cannot find ./catalina.sh The file is absent or does not have execute permission This file is nee Linux上tomcat无法正常启动
  10. IntelliJ IDEA 2017.3 搭建一个多模块的springboot项目(三)