我在尝试执行代码时遇到错误

时间:2015-10-02 19:22:15

标签: sql mysqli

Declare

    Total integer; 

    i integer;

Begini:= 1;

    total:=1; 

  loop

      total := total * i;

      i := i+1;

    exit when i > 4;

  End loop;

  dbms_output.put_line('total is ' || total);

End;  

1 个答案:

答案 0 :(得分:0)

开始

Begini:= 1;

    total:=1; 

应该是

Begin
    i:= 1;
    total:=1;