我写了个procedure:begin
loop
for i in 1 .. 10000
insert into emp values (i,'zhangshan');
end loop;
commit;
end;
/报错:ERROR at line 3:
ORA-06550: line 3, column 1:
PLS-00103: Encountered the symbol ";" when expecting one of the following:
begin case declare exit for goto if loop mod null pragma
raise return select update while with <an identifier>
<a double-quoted delimited-identifier> <a bind variable> <<
close current delete fetch lock insert open rollback
savepoint set sql execute commit forall merge pipe大家有没有碰到这种问题啊?
loop
for i in 1 .. 10000
insert into emp values (i,'zhangshan');
end loop;
commit;
end;
/报错:ERROR at line 3:
ORA-06550: line 3, column 1:
PLS-00103: Encountered the symbol ";" when expecting one of the following:
begin case declare exit for goto if loop mod null pragma
raise return select update while with <an identifier>
<a double-quoted delimited-identifier> <a bind variable> <<
close current delete fetch lock insert open rollback
savepoint set sql execute commit forall merge pipe大家有没有碰到这种问题啊?
解决方案 »
- 请问执行EXECUTE IMMEDIATE语句时为什么会显示无效字符呢?据说是语法问题,没看出来啊
- 建立外部表失败
- Oracle列注释乱码,需在查询表结构时转中文。
- 要解决这样的一个问题
- *****************请问高手以下语句是什么意思?*******************
- 将两条记录合并为一个字段,这个 SQL 如何写?
- 急问:我修改了计算机名称后,oracle数据库登录不进去了
- 如何将Excel数据导入Oracle?
- 客户要求通过程序实现备份数据库,能在客户端把数据库备份为一个文件,有何建议??
- 在sql查询中如果where条件in中的参数超过一千条甚至更多一般有什么优化方案?如 in(1,2,...........99999)
- oracle 查询 返回多行
- 在做Oracle数据库restore的时候遇到的问题
后面加loop
哈哈,他写了loop的,只是位置写错了。