0
data ABC.TABLE_1 (REPLACE=YES);
set ABC.TABLE_1 (OBS=0);
run;

ERROR: The TERADATA table TABLE_1 has been opened for OUTPUT. This table already exists, or there is a name 
       conflict with an existing object. This table will not be replaced. This engine does not support the REPLACE option.

怎么了?

谢谢,奥拉

4

1 回答 1

1

要么自己删除表。

proc delete data=ABC.TABLE_1 ; run;

或者

proc sql; drop table ABC.TABLE_T; quit;

或者,如果您不想删除表格,只需删除观察结果。

proc sql; delete from ABC.TABLE_T; quit;

然后使用 PROC APPEND 将数据添加到现有表中。

proc append base=ABC.TABLE_1 data=WORK.TABLE_1; run;

请注意,如果您想告诉 Teradata 使用什么类型,可以使用 DBTYPE 数据集选项。

data ABC.TABLE_1 (dbtype=(id='integer'));
  set table_1;
run;
于 2016-05-30T22:25:24.683 回答