One way that might work is to use the translate function. For Example:
SQL>r
1* select
translate('&numberstring',1||translate('&numberstring','0123456789','
'),'1') from dual
Enter value for numberstring: 89_.
Enter value for numberstring: 89_.
old 1: select
translate('&numberstring',1||translate('&numberstring','0123456789','
'),'1') from dual
new 1: select translate('89_.',1||translate('89_.','0123456789',' '),'1')
from dual
TR
--
89
1 row selected.
SQL>r
1* select
translate('&numberstring',1||translate('&numberstring','0123456789','
'),'1') from dual
Enter value for numberstring: 99,9
Enter value for numberstring: 99,9
old 1: select
translate('&numberstring',1||translate('&numberstring','0123456789','
'),'1') from dual
new 1: select translate('99,9',1||translate('99,9','0123456789',' '),'1')
from dual
TRA
---
999
1 row selected.
HTH,
Jeff
-----Original Message-----
Sent: Thursday, July 31, 2003 12:10 PM
To: Multiple recipients of list ORACLE-L
Hi,
I want to get rid or those special char in a number string to a pure number,
for an instance, from 89_. or 99,9 to 89 and 999.
Which function should I use in SqlPlus?
Thanks a lot,
Jack
Change nuber.+# to number
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Eberhard, Jeff
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).