Terry's blog

Focus on bigdata and cloud.

博客园 首页 新随笔 联系 订阅 管理

概述:
    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 ;

posted on 2008-03-19 17:06  王晓成  阅读(8230)  评论(0编辑  收藏  举报