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

Home -> Community -> Usenet -> c.d.o.tools -> Re: oracle function - get numbers from text string

Re: oracle function - get numbers from text string

From: Dusan Marjanov <macko_at_eunet.yu>
Date: Mon, 9 Jul 2001 21:44:02 +0200
Message-ID: <9id1kd$n3u$1@news.eunet.yu>

Hello!!!
Try to make PLSQL function returning number. Argument for this function can be string with number. This function could be called even from SQL queries. best regards
DUSAN MARJANOV "Andy Ho" <andyho99_at_MailAndNews.com> wrote in message news:3B672F10_at_MailAndNews.com...
> Hi,
>
> I was wondering if there is a function that can return numbers from
 string.
> For example:
>
> '$ 4.50' - returns '4.50'
> 'abc 1.0 def' - returns '1.0'
>
> There are no patterns for the string. Onle one thing for sure, there is
 only
> one number or no number in the string (if no number, return NULL).
>
> Thanks, Andy
>
> ------------------------------------------------------------
> Get your FREE web-based e-mail and newsgroup access at:
> http://MailAndNews.com
>
> Create a new mailbox, or access your existing IMAP4 or
> POP3 mailbox from anywhere with just a web browser.
> ------------------------------------------------------------
>
Received on Mon Jul 09 2001 - 14:44:02 CDT

Original text of this message

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