presto substr
时间: 2023-08-25 16:05:20 浏览: 163
在Presto中,可以使用substr函数来截取字符串的子串。substr函数的语法为substr(string, start, length),其中string表示要截取的字符串,start表示要截取的起始位置,length表示要截取的长度。例如,如果要截取字符串"hello,world,presto"的第7个字符开始的后面5个字符,可以使用以下SQL语句:SELECT substr('hello,world,presto', 7, 5)。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [presto中常见字符串函数操作](https://blog.csdn.net/lzxlfly/article/details/108426059)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [presto 获取指定字符前/后的字符串](https://blog.csdn.net/X8i0Bev/article/details/129543226)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文