DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: SQL query

Threaded View

  1. #4
    Join Date
    Apr 2006
    Posts
    377
    This will work for you in 10g.

    Code:
    select regexp_substr(col_a,'[[:digit:]]+$') from test_exp
    where regexp_instr(col_a,'#') > 0;
    
    or
    
    select regexp_replace(col_a,'(.*# )','\2') from test_exp
    where regexp_instr(col_a,'#') > 0;
    Last edited by ebrian; 07-27-2006 at 03:08 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width