您的位置:首页 > 数据库 > Oracle

Oracle内处理字符串

2016-04-11 14:49 585 查看
SELECT t.log,
replace(SUBSTR(t.log, 1, INSTR(t.log, '|',1,2) - 1),'| 访问ID:','') as 访问ID,
replace(replace(SUBSTR(t.log, 1, INSTR(t.log, '|',3,2) - 1),SUBSTR(t.log, 1, INSTR(t.log, '|',1,2) - 1),''),'| 访问地址:','') as 访问地址,
replace(replace(SUBSTR(t.log, 1, INSTR(t.log, '|',3,3) - 1),SUBSTR(t.log, 1, INSTR(t.log, '|',1,3) - 1),''),'| 请求方式:','') as 请求方式,
replace(SUBSTR(t.log, 1, INSTR(t.log, '|',3,4) - 1),SUBSTR(t.log, 1, INSTR(t.log, '|',1,3) - 1),'') as 参数
FROM zfb_csfu_log_2015081901 t
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  oracle