当前位置: 首页 > news >正文

清河县网站建设廊坊seo外包

清河县网站建设,廊坊seo外包,wordpress 迁移服务器,网页app生成器最新版目录 建表语句 表数据 Hive建表高阶语句 - CTAS and WITH CTAS – as select方式建表 CTE (CTAS with Common Table Expression) LIKE 创建临时表 清空表数据 修改表#xff08;Alter针对元数据#xff09; 改名 修正表文件格式 修改列名 添加列 替换列 动态分…目录 建表语句 表数据 Hive建表高阶语句 - CTAS and WITH CTAS – as select方式建表 CTE (CTAS with Common Table Expression) LIKE 创建临时表 清空表数据 修改表Alter针对元数据 改名 修正表文件格式 修改列名 添加列 替换列 动态分区 使用动态分区需设定属性 建表语句 动态分区插入数据 查询分区 添加分区 删除分区 建表语句 create table if not exists employee (name string,workplace arraystring,gender string,age int,skills_score mapstring,int,depart_title mapstring,string ) row format delimited fields terminated by |collection items terminated by ,map keys terminated by :lines terminated by \n; 表数据 Michael|Montreal,Toronto|Male|30|DB:80|Product:Developer Lead Will|Montreal|Male|35|Perl:85|Product:Lead,Test:Lead Shelley|New York|Female|27|Python:80|Test:Lead,COE:Architect Lucy|Vancouver|Female|57|Sales:89,HR:94|Sales:Lead Hive建表高阶语句 - CTAS and WITH CTAS – as select方式建表 CREATE TABLE ctas_employee as SELECT * FROM employee; CTAS不能创建partition, external, bucket table CTE (CTAS with Common Table Expression) CREATE TABLE cte_employee AS WITH r1 AS (SELECT name FROM r2 WHERE name Michael), r2 AS (SELECT name FROM employee WHERE gender Male), r3 AS (SELECT name FROM employee WHERE gender Female) SELECT * FROM r1 UNION ALL SELECT * FROM r3; LIKE CREATE TABLE employee_like LIKE employee; 创建临时表 临时表是应用程序自动管理在复杂查询期间生成的中间数据的方法 表只对当前session有效session退出后自动删除 表空间位于/tmp/hive-user_name(安全考虑) 如果创建的临时表表名已存在实际用的是临时表 CREATE TEMPORARY TABLE tmp_table_name1 (c1 string); CREATE TEMPORARY TABLE tmp_table_name2 AS.. CREATE TEMPORARY TABLE tmp_table_name3 LIKE.. 清空表数据 TRUNCATE TABLE employee;  修改表Alter针对元数据 改名 ALTER TABLE employee RENAME TO new_employee; 修正表文件格式 ALTER TABLE employee SET FILEFORMAT RCFILE;  修改列名 ALTER TABLE employee CHANGE name  employee_name STRING;  添加列 ALTER TABLE employee ADD COLUMNS (work string); 替换列 ALTER TABLE employee REPLACE COLUMNS (name string); 创建分区 动态分区 使用动态分区需设定属性 set hive.exec.dynamic.partitiontrue; set hive.exec.dynamic.partition.modenonstrict; 建表语句 create table employee_dt(name string,workplace arraystring,skills_score mapstring,int,depart_title mapstring,string ) partitioned by (gender string,age int )row format delimited fields terminated by ,collection items terminated by -map keys terminated by :lines terminated by \n; 动态分区插入数据 insert into table employee_dt partition (gender,age) select name, workplace, skills_score, depart_title, gender, age from employee2; 查询分区 show partitions employee_dt; 添加分区 alter table employee_dtadd partition (gender Male,age 28);删除分区 alter table employee_dtdrop partition (gender Male,age 28);
http://www.hkea.cn/news/14299209/

相关文章:

  • 墨刀做网站上下滑动的交互小程序制作需要什么条件
  • 垦利住房和城乡建设局网站色块的网站
  • 罗湖网站设计一站式营销型网站建设
  • wordpress建站seo做外贸公司 网站
  • 网站备案查询平台windows优化大师win10
  • php做的网站有互联网保险案例
  • 网站开发是前端还是wordpress图片按钮
  • 中英 网站模板 带手机版哪里可以下载免费的ppt模板
  • 网站设计哪家稳定网站建设与软件开发哪个好赚钱
  • 长春百度网站快速优化扁平化 wordpress 主题
  • 马尾建设局网站泰州专一做淘宝网站
  • 微信自创小程序东莞公司网站做优化
  • 网站的seo方案怎么做怎样做网站和网站的友情链接
  • 网站有哪些区别是什么意思网页版是什么意思
  • 石河子网站制作网页制作与网站建设英文翻译
  • 什么网站能接工地做网站空间地址
  • 网站开发工具发展史移动电商网站建设
  • wordpress 游客访问宁波seo推广优化哪家强
  • 个人接单做网站挣钱不网上推广平台 怎么入手
  • 深圳人才网站建设南京网站南京网站设计制作公司
  • 个人网站备案icp汽车保险网站
  • 石家庄网站建设吧几大网站类型
  • 快速做网站公司报价杭州手机网站开发
  • 大理工程建设信息网站上传wordpress后
  • 网站制作需求文档网站的标签
  • 专业微信网站特种证书查询入口
  • 西宁网站开发多少钱河南百度推广代理商
  • 深圳网站建设服务器用几个域名做网站好
  • 网站开发工程师应聘书范文用个人的信息备案网站
  • 动漫网站设计方案北京到安阳火车票