hive--删除表中的数据truncate

jiezi
2017-11-03 / 0 评论 / 2 阅读 / 正在检测是否收录...

delect:用于删除特定行条件,你可以从给定表中删除所有的行

TRUNCATE:truncate用于删除所有的行,这个行为在hive元存储删除数据是不可逆的

DROP:删除hive中的表

truncate 不能删除外部表!因为外部表里的数据并不是存放在Hive Meta store中

truncate:

truncate table table_name;

例子:

truncate table employees;

0

评论 (0)

取消