Przejdź do głównej zawartości

Zwraca silnię x. Jeśli x jest mniejsze lub równe 0, funkcja zwraca 0.

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