COLLATE

functionsupportedCore SQL functions

docs.snowflake.com ↗

String & binary functions

Returns a copy of the original string, but with the specified collation_specification property instead of the original collation_specification property. This copy can be used in subsequent string comparisons, which will use the new collation_specification.

Syntax

The COLLATE function can be called as a normal function

COLLATE(<string_expression>, '<collation_specification>')

The COLLATE function can be used as though it were an infix operator

<string_expression> COLLATE '<collation_specification>'

Parameters

NameRequiredDescription
string_expressionrequiredThe string to copy.
collation_specificationrequiredThe collation to store with the copy of the string. For more information about collation specifiers, see Collation specifications.

Returns

Returns a copy of the original string, but with the specified collation_specification property instead of the original collation_specification.

Usage notes