Re: Retreiving specific content in a Database table field
Posted by: Rick James
Date: July 01, 2010 11:38PM

WHERE gps RLIKE '[a-z]' -- look for a letter
WHERE gps NOT RLIKE '^[0-9]+$' -- anything other than digits (also catches empty string)
WHERE gps NOT RLIKE '^[0-9.]+$' -- anything other than digits or decimal
WHERE gps NOT RLIKE '^[-+0-9.]+$' -- anything other than digits, decimal, sign (note: "-" must be first)
WHERE gps NOT RLIKE '^[0-9]{7}$' -- anything other than exactly 7 digits

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Retreiving specific content in a Database table field
1601
July 01, 2010 11:38PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.