- SQL code
declare IsTable INTEGER:=0;beginselect count(*) into IsTable from DBA_TABLES where table_name='NEDW_M_B_ADSL_D';if IsTable=0 then create table NEDW_M_B_ADSL_D as select * from NEDW_M_B_ADSL_D@lnzd where rownum<=10;else insert into NEDW_M_B_ADSL_D select * from NEDW_M_B_ADSL_D@lnzd where rownum<=10;end if;end;
报错,
ORA-06550
PLS-00103 : 出现符号“crerate”在需要下列之一时......
请问如何解决?
------解决方案--------------------
plsql过程化语句里面无法执行DDL 可用动态语句方式执行,方法同二楼
------解决方案--------------------
用动态sql,二楼已解答