列表

详情


在MaxCompute SQL中可以通过命令清空表中已有的数据,以下命令正确的包括()。


A. 对非分区表truncate table table_name;

B. 对分区表truncate table table_ name;

C. 对分区表alter table table_name drop partition;

D. 对所有表drop table table_name;

参考答案: AC

详细解析:

将指定的非分区表中的数据清空的命令是:TRUNCATE TABLE table_name;对于分区表,用ALTER TABLE table_name DROP PARTITION的方式将分区里的数据清除。具体查看帮助文档https://help.aliyun.com/document_detail/73768.html?spm=a2c4g.11174283.6.686.7796590eRPACsG#title-fxh-hqj-1dc


上一题