inData='12345|张三|男' SELECT REGEXP_SUBSTR (inData, '[^|]+', 1,1) into 用户ID FROM DUAL;SELECT REGEXP_SUBSTR (inData, '[^|]+', 1,2) into 用户姓名 FROM DUAL;SELECT REGEXP_SUBSTR (inData, '[^|]+', 1,3) into 性别 FROM DUAL;…
function string_split(str, delimiter) if str == nil or str == '' or delimiter == nil then return nil end local result = {} for match in (str..delimiter):gmatch("(.-)"..delimiter) do table.insert(result, match) end return res…