Apache-presto-string-function-strpos

提供:Dev Guides
2020年6月22日 (月) 22:41時点におけるMaintenance script (トーク | 投稿記録)による版 (Imported from text file)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先:案内検索

Apache Presto-strpos(string、substring)

クエリ1

presto:default> select strpos('apache','ap') as string_position;

結果

 string_position
-----------------
       1

クエリ2

presto:default> select strpos('apache','c') as string_position;

結果

 string_position
-----------------
       4