在 Oracle PL/SQL 中,我有这个编码,它给了我编译器错误。我不知道为什么,看起来我拥有一切......
请帮忙。
谢谢
ORA-06550: line 6, column 5:
PLS-00103: Encountered the symbol "CREATE" when expecting one of the following:
( begin case declare end exit for goto if loop mod null
pragma raise return select update while with <an identifier>
<a double-quoted delimited-identifier> <a bind variable> <<
continue close current delete fetch lock insert open rollback
savepoint set sql execute commit forall merge pipe purge
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:
代码是
begin
for c in (select id from tmp_A)
loop
dbms_output.put_line(c.id);
create table tmp_c as
select B.name from tmp_B B where B.id = c.id;
drop table tmp_c;
end loop;
end;
/