Getting started
User guides
Administration guides
Reference guides
Resources
Updated Aug 18, 2022
Send us feedback
factorial
Returns the factorial of expr.
expr
factorial(expr)
expr: An INTEGER expression between 1 and 20.
A BIGINT.
If expr is out of bounds, the function returns NULL.
> SELECT factorial(5); 120