【发布时间】:2012-11-05 11:14:20
【问题描述】:
为什么 sqlplus 脚本中的execute immediate 'truncate table trade_economics'; 会出现以下错误?
BEGIN immediate 'truncate table trade_economics'; END;
*
ERROR at line 1:
ORA-06550: line 1, column 17:
PLS-00103: Encountered the symbol "truncate table trade_economics" when
expecting one of the following:
:= . ( @ % ;
The symbol ":=" was substituted for "truncate table trade_economics" to
continue.`
【问题讨论】:
-
我认为您有充分的理由使用动态 SQL。
标签: sqlplus truncate execute-immediate