Oracle TO_NUMBER Function


/ Published in: SQL
Save to your folder(s)

A few examples of the TO_NUMBER function


Copy this code and paste it in your HTML
  1. SELECT TO_NUMBER('5467.12') FROM DUAL;
  2.  
  3. SELECT TO_NUMBER('5467.12', '999999.99') FROM DUAL;
  4.  
  5. SELECT TO_NUMBER('4687841', '9999999') FROM DUAL;
  6.  
  7. SELECT TO_NUMBER('$65.169', 'L99.999') FROM DUAL;
  8.  
  9. SELECT TO_NUMBER('123,456,789', '999,999,999') FROM DUAL;
  10.  
  11. SELECT TO_NUMBER('$17 218,00', 'L999G999D00',' NLS_NUMERIC_CHARACTERS='', ''') FROM DUAL;

URL: http://www.databasestar.com/oracle-to_number/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.