/ Published in: SQL
A few examples of the Oracle TO_CHAR function, which works on numbers and dates.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
SELECT TO_CHAR(12345.67, '99999.9') FROM DUAL; SELECT TO_CHAR(12345, '00000000') FROM DUAL; SELECT TO_CHAR(SYSDATE, 'YYYY_MM_DD') FROM DUAL; SELECT TO_CHAR(SYSDATE, 'Month') FROM DUAL;
URL: http://www.databasestar.com/oracle-to_char/