コンテンツにスキップ

x の階乗を返します。x が 0 以下の場合、この関数は 0 を返します。

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