简体   繁体   中英

Oracle : SQL with REGEXP and RTRIM for Oracle 8i

I have this RTRIM and REGEXP function in Oracle SQL query which is working fine in Oracle 10g but is not working in Oracle 8i. How can I convert the following statement to something working in both Oracle 8i and 10g and still having the same result.

RTRIM(regexp_substr(table.column1, '([^/]+\.)'), '.')

Thanks for the help.

I found the answer :

    SUBSTR(table.column1, INSTR(table.column1, '/', -1) + 1,
    INSTR(table.column1, '.') - INSTR(table.column1, '/', -1) - 1)

^_^

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM