Working with SQL Editor for building query
回答済みI am trying to write a query involving string functions of SQL such as 'CHARINDEX' or 'PATINDEX' to check the existence of a particular pattern within a cell data. On executing the query, I get an error saying CHARINDEX function not registered. Do we have to use any other syntax or how do we register these functions?
0
-
Hi! The SQL Editor uses Presto syntax, which supports specific string functions (and it doesn't look like CHARINDEX is one of them).
For your need, you may want to try
position(substring IN string) → bigint
which returns the position of the first instance of a substring within a string.
0
コメント
2件のコメント