Error: PLS-00103: 出现符号 “CREATE”在需要下列之一时:

  • Post author:
  • Post category:其他



概述:


Oralce在begin 和end 之间创建数据表时,会出现如标题的错误。

语句如下:





begin






create




table




create




table


studentinfobackup


as






select




*




from


studentinfo




end


;

按下F8进行执行语句会出现如下错误


解决办法:



begin






Execute


immediate





create table studentinfobackup as select *  from studentinfo





;




end


;



版权声明:本文为yefengnidie原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。