4.3 修改表

这里的修改表不是指的修改表中的数据.

4.3.1 重命名表

ALTER TABLE table_name RENAME TO new_table_name


4.3.2 增加/修改/替换列信息

  1. 增加列

     alter table new_person add columns(sex string);
    

  2. 更新列

      alter table new_person change column sex gender string;
    

  3. 替换列

     alter table new_person replace columns(name1 string, friends1 array<string>, children map<string, int>);
    

Copyright © 尚硅谷大数据 2019 all right reserved,powered by Gitbook
该文件最后修订时间: 2019-03-16 07:15:56

results matching ""

    No results matching ""