2
为什么execute immediate 'truncate table trade_economics';
在sqlplus脚本中出现以下错误?在sqlplus中执行立即截断表
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。 –