Skip to contents

Computes the greatest common divisor of x and y.

Usage

greatest_common_divisor(x, y)

Arguments

x, y

BIGINT | HUGEINT

Value

BIGINT | HUGEINT

SQL examples

greatest_common_divisor(42, 57)