Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> REGEXP_like

REGEXP_like

From: cptkirkh <khill_at_scic.com>
Date: 27 Apr 2007 08:53:49 -0700
Message-ID: <1177689229.180452.166930@r35g2000prh.googlegroups.com>


I have to write a SQL query that looks for the last two digits of an ID and only includes them in the query. For example

select ID from my_table where regexp_like(id, '00$') between regexp_like(id,'09$')

I want only the people who have an id that ends in 00 to 09. Can I do this or what is the best way to do this? Thanks for your help. Received on Fri Apr 27 2007 - 10:53:49 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US