📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

FACTORIAL



Returns the factorial logarithm of x. If x is less than or equal to 0, the function returns 0.

Syntax

FACTORIAL( <x> )

Examples

SELECT FACTORIAL(5); ┌──────────────┐ │ factorial(5) │ ├──────────────┤ │ 120 │ └──────────────┘

Was this page helpful?