split_part()切割函数
Postgresql里面内置了很多的实用函数,下面介绍切割函数:
介绍:
split_part(string text, delimiter text, field int)
Split string on delimiter and return the given field (counting from one)
1.找到name='9-76’行:
2.使用split_part()切割函数对按分隔符去取某个特定位置上的值:
位置是1时:
位置是2时:
说明 该函数对按分隔符去取某个特定位置上的值非常有效果。