1建表:

建表语句形式1:
Create table table_name(col_name1 type ,col_name2 type,… )

row format DELIMITED FIELDS TERMINATED BY '\t'

location ‘/user/$username/warehouse/tables/table_name’

建表实例1:
create table hue_fengchao_test23(a int,b string)

row format DELIMITED FIELDS TERMINATED BY '\t'

location '/user/fengchao/warehouse/tables/hue_fengchao_test23'

 

建表语句形式2:
Create table table_namerow

format DELIMITED FIELDS TERMINATED BY '\t'

location ‘/user/$username/warehouse/tables/table_name’ as select_statement

建表实例2:
create table hue_fengchao_test24row

format DELIMITED FIELDS TERMINATED BY '\t'

location '/user/fengchao/warehouse/tables/hue_fengchao_test24' as select * from user_group

 

 

 

相关文章:

  • 2021-07-15
  • 2022-12-23
  • 2021-11-18
  • 2021-12-19
  • 2021-11-11
  • 2021-07-24
  • 2021-05-12
猜你喜欢
  • 2021-09-02
  • 2021-06-01
  • 2022-12-23
  • 2021-10-30
  • 2022-12-23
  • 2021-09-20
  • 2022-02-04
相关资源
相似解决方案