Apache-presto-element-at

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

Apache Presto-element_at(array、index)

クエリ1

presto:default> select array_intersect(array[1,2,3],array[2,4]) as intersection;

結果

 intersection
--------------
     [2]

クエリ2

presto:default> select element_at(array[1,2,3],2) as element_position;

結果

element_position
------------------
       2