1
我是PL/SQL的新手,所以我試圖在SQL開發人員中執行一些PL/SQL程序。但它會引發錯誤,即使我的程序是正確的。是否需要更改我的SQL Developer設置以執行數學運算?如何在PL/SQL中執行算術程序?
我正在試圖執行此程序。
DECLARE
num number(5):= 20;
num1 number(5):= 80;
sum number(5);
BEGIN
sum:= num + num1;
dbms_output.put_line('result='||sum);
END;
和錯誤是:起始於線 錯誤:2在命令 -
Error report -
ORA-06550: line 7, column 36:
PLS-00103: Encountered the symbol ")" when expecting one of the following:
(
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:
謝謝主席先生。 –