Oracle11g里面的SQL Plus 我写错代码了 怎么修改?
DECLARE
Vall NUMBER :=5;
Val2 NUMBER :=2;
TheAnswer NUMBER;
BEGIN
TheAnswer:=Val1+Val2;
DBMS OUTPUT.PUT_LINE('值为:'||TheAnswer);
EXCEPTION
WHEN ZERO_DIVIDE THEN
DBMS_OUTPUT.PUT_ LINE('Cannot divide by zero!');
END;
/
如题! 我这段程序第3行 vall应该是val1写错了怎么在SQL Plus里面修改?!
Vall NUMBER :=5;
Val2 NUMBER :=2;
TheAnswer NUMBER;
BEGIN
TheAnswer:=Val1+Val2;
DBMS OUTPUT.PUT_LINE('值为:'||TheAnswer);
EXCEPTION
WHEN ZERO_DIVIDE THEN
DBMS_OUTPUT.PUT_ LINE('Cannot divide by zero!');
END;
/