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

来源:互联网 发布:淘宝e客服 编辑:程序博客网 时间:2024/06/05 17:36

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

 begin
   
create table create table studentinfobackup as 
   
select *  from studentinfo
 
end;

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

plsql

解决办法:    

begin
 
Execute immediate 'create table studentinfobackup as select *  from studentinfo';
 
end ;