我输入的字符串列的值如下:
inputstring
---------------------------------------------------------
"country:India,country:USA;State:Delhi,State: California"
"country:Singapore; State: Singapore"
"State:Florida"
我必须从该列中提取值,并需要将其输出为两列
Country | State
----------+-----------
India. | Delhi
USA. | California
Singapore | Singapore
Null. | Florida
我尝试使用
split(split (inputstring, ';')offset[0], ',')offset[0]
但是我不确定如何为它分配一个数组