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;
时间: 2024-11-25 06:48:40
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;