我们在sap HANA中要求将逗号分隔的字符串拆分成行-
string - A,B
我们希望输出为-
col1
A
B
是否可以使用SAP HANA?
诚挚的问候
发布于 2019-02-13 20:00:06
您可以尝试以下SQLScript library to split text into table表单
do
begin using SQLSCRIPT_STRING as lib;
declare tbl table (result varchar(10));
declare strVal varchar(200);
strVal = 'A,B';
tbl := lib:split_to_table( :strVal, ',' );
select result as col1 from :tbl;
end;
https://stackoverflow.com/questions/42975862
复制相似问题