str
:要分析的字符串表达式。
lang
:一个可选字符串表达式,其语言代码来自 ISO 639 Alpha-2(例如“DE”)、Alpha-3 或最多包含 8 个字符的语言子标记。
country
:一个可选字符串表达式,其国家/地区代码来自 ISO 3166 alpha-2 国家/地区代码或 UN M.49 numeric-3 区号。
一个数组,其中包含字符串数组。
lang 和 country 的默认值分别为
en
和
US
。
> SELECT sentences('Hi there! Good morning.');
[[Hi, there],[Good, morning]]
> SELECT sentences('Hi there! Good morning.', 'en', 'US');
[[Hi, there],[Good, morning]]
split 函数