Oracle8i SQL Reference Release 2 (8.1.6) A76989-01 |
|
Functions, 104 of 121
TO_NUMBER
converts char, a value of CHAR
or VARCHAR2
datatype containing a number in the format specified by the optional format model fmt, to a value of NUMBER
datatype.
UPDATE emp SET sal = sal + TO_NUMBER('100.00', '9G999D99') WHERE ename = 'BLAKE';
The 'nlsparams' string in this function has the same purpose as it does in the TO_CHAR
function for number conversions.
SELECT TO_NUMBER('-AusDollars100','L9G999D99', ' NLS_NUMERIC_CHARACTERS = '',.'' NLS_CURRENCY = ''AusDollars'' ') "Amount" FROM DUAL; Amount ---------- -100
|
Copyright © 1999 Oracle Corporation. All Rights Reserved. |
|