snowflake.snowpark.functions.locate¶
- snowflake.snowpark.functions.locate(expr1: str, expr2: Union[Column, str], start_pos: int = 1) Column[source]¶
Searches for the first occurrence of the first argument in the second argument. If successful, returns the position (1-based) of the first argument in the second argument. Otherwise, return 0.
Note:
Example: