Apache-tajo-locate

提供:Dev Guides
移動先:案内検索

Locate(ソーステキスト、ターゲットテキスト、start_index)

次のクエリで* locate(string、source text、target text、start_index)*関数を確認しましょう。

問い合わせ

default> select locate('finddevguides','point',10) as string_position;

結果

上記のクエリは、次の結果を生成します。

string_position
-------------------------------
10

出力は、指定された入力文字列「finddevguides」から指定された文字列「point」の場所を返します。 位置は10です。