子 WORD

SUBWORD 函数返回 string 的子串,该子串以第 n个单词开头,最多为 length 个空格分隔的单词。

读取语法图跳过可视语法图 SUBWORD( 字符串(string) , n ,长度 )

n 必须是正整数。 如果省略 length,那么它缺省为 string中的剩余字数。 返回的字符串从不包含前导或尾部空格,但包含所选词之间的所有空格。

示例

SUBWORD('Now is the  time',2,2)    ->    'is the'
SUBWORD('Now is the  time',3)      ->    'the  time'
SUBWORD('Now is the  time',5)      ->    ''