TRUNCATE TABLE upload_log 报错 FAILED: ODPS-0000000:Invalid query - partitioned table can not be truncated 或者你告诉我怎么清空MaxCompute里面的表数据,我想把表清空了, 重新传一些数据进行测试?
TRUNCATE TABLE 命令只能应用于非分区表。1.可以删除分区:ALTER TABLE table_name DROP [IF EXISTS] PARTITION partition_spec;2.可以向分区中,用【覆盖模式】插入0条记录: INSERT OVERWRITE TABLE testtable PARTITION (partcol1=val1, partcol2=val2 ...) SELECT col1,col2,…… FROM testtable WHERE 1=2;
赞0
踩0