1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| D:\>sqlplus user/pass@NukeDB
SQL*Plus: Release 9.2.0.1.0 - Production on Ve Avr 7 14:47:10 2006
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
ConnectÚ Ó :
Oracle9i Release 9.2.0.1.0 - Production
JServer Release 9.2.0.1.0 - Production
SQL> CREATE OR REPLACE FUNCTION Factorial(n IN Number) RETURN Number
2 AS LANGUAGE JAVA
3 NAME 'Factorial.calcFactorial (int) return int';
4 /
Fonction crÚÚe.
SQL> select Factorial(3) from DUAL;
FACTORIAL(3)
------------
6 |