摘要:
测试实例如下:SQL> CREATE OR REPLACE FUNCTION factorial 2 ( n BINARY_DOUBLE ) RETURN BINARY_DOUBLE IS 3 BEGIN 4 IF n <= 1 THEN 5 RETURN 1; 6 ELSE 7 RETURN n * factorial(n - 1); 8 END IF; 9 END factorial;10 /函数已创建。SQL> select factorial(4) from dual;select factorial(4) from dual *ERROR 位于第 1 行:ORA-0 阅读全文