PARSENAME_UDF

Important Notice: Migration of Documentation Website

Please be advised that our documentation website is currently undergoing a migration to a new platform. To ensure you have access to the most up-to-date information, we kindly request that you visit our new documentation website located at:

Official Snowflake Snowconvert Documentation

For any immediate assistance or if you encounter any issues, please contact our support team at [email protected].

Thank you for your understanding.

Definition

This user-defined function (UDF) gets the PART_NUMBER index of a string separated by '.'.

PARSENAME_UDF(STR VARCHAR, PART_NUMBER INT)

Parameters

STR VARCHAR

The object name as a string.

PART_NUMBER INT

The part of the object name to be checked.

Returns

Returns the specified part of an object name.

Usage example

Input:

SELECT PARSENAME_UDF('Test_A.Test_B.Test_C]', 2);

Output:

Test_B

Last updated