oracel截取字符串

//取@163.com前面的
SELECT SUBSTR ('test@163.com',1,
INSTR ('test@163.com', '@163.com', -1)-1)
FROM DUAL

//取@163.com后面的
SELECT SUBSTR ('test@163.com',
INSTR ('test@163.com', '@163.com', -1)+1)
FROM DUAL

posted @ 2020-06-09 22:10  金虹巴巴  阅读(147)  评论(0编辑  收藏  举报