This section contains reference documentation for the gcd function.
Returns the greatest common divisor of two long values.
gcd(col1, col2)
col1
LONG
First value
col2
Second value
Returns: LONG
SELECT gcd(12, 8) AS value FROM myTable
4
SELECT gcd(0, 5) AS value FROM myTable
5
Last updated 3 months ago
Was this helpful?