I have
a hunch that I'll continue to use perl for a while. I don't know why, but I just
feel that way.
--
Mladen Gogala
Oracle DBA
Mladen Gogala
Oracle DBA
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 1:40 PM
To: Multiple recipients of list ORACLE-L
Subject: Re: Isnumeric question
Or, how about: http://www.oreilly.com/catalog/oracleregexpr/
Mladen Gogala <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]09/22/2003 06:44 PM
Please respond to ORACLE-L
To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
cc:
Subject: Re: Isnumeric question
Here is a good impossible solution which can be used
to make this list drool:
http://technet.oracle.com/oramag/webcolumns/2003/techarticles/rischert_regexp_pt1.html
On 2003.09.22 21:24, Jacques Kilchoer wrote:
> >-----Original Message-----
> >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
> Teresita Castro
> >
> >I want to made something like this ina query
> >
> >select decode( isnumeric(line_comment), to_number(line_comment),0)
> >
> >how can I do this in Oracle?
>
> First you need to define what "isnumeric" means to you.
> Does it mean
> a) this string only contains ASCII characters 0 through 9
> b) this string only contains ASCII characters 0 through 9 with maybe one
> decimal point (as determined by my NLS settings)'
> c) this string only contains ASCII characters 0 through 9 with maybe one
> decimal point and group separators (as determined by my NLS settings)
> d) 'this string contains a valid ORACLE number constant' e.g. -2.3e+10 is a
> valid number?
> e) something else (minus signs, etc.)
>
> If the answer is d), then (from an old idea by Jared Still) create your own
> function
> create function is_number (str in varchar2)
> return number
> is
> x number ;
> begin
> x := to_number (str) ;
> return 1 ;
> exception
> when value_error
> then
> return 0 ;
> when others
> then
> raise ;
> end ;
> /
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: Jacques Kilchoer
> INET: [EMAIL PROTECTED]
>
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>
--
Mladen Gogala
Oracle DBA
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Mladen Gogala
INET: [EMAIL PROTECTED]
Fat City Network Services -- 858-538-5051 http://www.fatcity.com
San Diego, California -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Note:
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify the
sender. You must not, directly or indirectly, use, disclose, distribute,
print, or copy any part of this message if you are not the intended
recipient. Wang Trading
LLC and any of its subsidiaries each reserve the right to
monitor all e-mail communications through its networks. Any views
expressed in this message are those of the individual sender, except where the
message states otherwise and the sender is authorized to state them to be the
views of any such entity.
