Ir al contenido

Devuelve el factorial de x. Si x es menor o igual que 0, la función devuelve 0.

func.factorial( <x> )
func.factorial(5)
┌───────────────────┐
│ func.factorial(5) │
├───────────────────┤
│ 120 │
└───────────────────┘
FACTORIAL( <x> )
SELECT FACTORIAL(5);
┌──────────────┐
│ factorial(5) │
├──────────────┤
│ 120 │
└──────────────┘