跳转到内容

返回 x 的阶乘对数。如果 x 小于或等于 0,则函数返回 0。

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