使用truncate仅可删除内部表数据,不可删除表结构

truncate table 表名

(truncate可删除所有的行,但是不能删除外部表)

使用shell命令删除外部表

hdfs -dfs -rm -r 外部表路径

使用 drop 可删除整个表

drop table 表名