Apache Presto - slice(x, start, length)



查询

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

结果

 array_slice 
------------- 
   [1, 2] 
apache_presto_sql_functions.htm
广告