Oracle Pl/sql中的Continue语句

Oracle Pl/sql中的Continue语句,oracle,Oracle,我在Oracle 10g工作。我正在运行这个pl/sql块 Declare cursor Get_Data is select * from employee for update; data Get_Data%rowtype; Begin for data in Get_Data loop if(data.salary=5000) then continue; else update employee set salary= salary+3000 where cu

我在Oracle 10g工作。我正在运行这个pl/sql块

Declare
cursor Get_Data is select * from employee for update;
data Get_Data%rowtype;

Begin

for data in Get_Data loop
  if(data.salary=5000) then 
  continue; 
  else 
   update employee set salary= salary+3000 where current of Get_Data;
  end if;
end loop;
end;
它给了我这个错误:
必须声明标识符“CONTINUE”

请建议我如何解决这个问题。

试试看

Declare
    cursor Get_Data is select * from employee for update;
    data Get_Data%rowtype;

    Begin

    for data in Get_Data loop
      if(data.salary<>5000)
           update employee set salary= salary+3000 where current of Get_Data;
      end if;
    end loop;
    end;
声明
光标Get_Data是从员工中选择*进行更新;
数据获取_数据%rowtype;
开始
对于Get_数据循环中的数据
if(数据:工资5000)
更新员工设置薪资=薪资+3000,其中当前为Get_数据;
如果结束;
端环;
终止
试试看

声明
光标Get_Data是从员工中选择*进行更新;
数据获取_数据%rowtype;
开始
对于Get_数据循环中的数据
if(数据:工资5000)
更新员工设置薪资=薪资+3000,其中当前为Get_数据;
如果结束;
端环;
终止

请注意:
继续
仅在Oracle 11g中受支持

请参阅:
Oracle®数据库PL/SQL语言参考11g第1版(11.1)>PL/SQL有什么新功能?>

请注意:
CONTINUE
仅在Oracle 11g中受支持

请参阅:
Oracle®数据库PL/SQL语言参考11g第1版(11.1)>PL/SQL有什么新功能?>

你是对的,我的朋友,但我想使用continue语句,因为我知道它有效,但为什么这次它不起作用。NULL出现时不一样。你是对的,我的朋友,但我想使用continue语句,因为我知道它有效,但为什么这次它不起作用。NULL出现时不一样。