Apache Presto - strpos(字符串、子串)



查询 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
apache_presto_sql_functions.htm
广告