当前位置:首页 > 开发 > 系统架构 > 架构 > 正文

HIVE 第六章 视图

发表于: 2013-02-13   作者:blackproof   来源:转载   浏览:
摘要: 第七章 试图 view1 create view shorter_join as select * from people join cart on(cart.people_id=people.id) where firstname='dirk'   select lastname from shorter_join where id=3   view2 cr

第七章 试图

view1

create view shorter_join as

select * from people join cart

on(cart.people_id=people.id) where firstname='dirk'

 

select lastname from shorter_join where id=3

 

view2

create view if not exists shipments(time,part)

comment 'time and parts for shipments'

tblproperties('creator'='me')

as select...;

 

通过试图建table

create table shipments2 like shipments

 

删除view

drop view if exists shipments

 

修改view属性

alter view shipments set tblproperties('created_at'='some_timestamp')

HIVE 第六章 视图

  • 0

    开心

    开心

  • 0

    板砖

    板砖

  • 0

    感动

    感动

  • 0

    有用

    有用

  • 0

    疑问

    疑问

  • 0

    难过

    难过

  • 0

    无聊

    无聊

  • 0

    震惊

    震惊

版权所有 IT知识库 CopyRight © 2009-2015 IT知识库 IT610.com , All Rights Reserved. 京ICP备09083238号