I.e. When you select a date in sql, by default it returns the date in the format dd-mon-yy, eventhough the time component is there it doesnt show. If you want to see the time also, you have to use the to_char function again to show the time. Try this query.
select to_char(to_date (to_char (SYSTIMESTAMP, 'YYYY-MON-DD HH24.MI.SS'), 'YYYY-MON-DD HH24.MI.SS') , 'YYYY-MON-DD HH24.MI.SS') AS MY_DATE from DUAL
/
Main Topics
Browse All Topics





by: sujith80Posted on 2007-09-06 at 20:44:18ID: 19845276
The time component is already there. Its only that you are not displaying it.
If you want to see add a to_char around the select value and display it.