snowflake.snowpark.functions.charindex¶
- snowflake.snowpark.functions.charindex(target_expr: ColumnOrName, source_expr: ColumnOrName, position: Column | int | None = None) Column[source]¶
Searches for
target_exprinsource_exprand, if successful, returns the position (1-based) of thetarget_exprinsource_expr.- Parameters:
target_expr – A string or binary expression representing the value to look for.
source_expr – A string or binary expression representing the value to search.
position – A number indication the position (1-based) from where to start the search. Defaults to None.
- Examples::