I have the following data:
date_time: 08-Dec-14 07:52:52 along with other fields.
I insert using the following:
insert into employee (DATE_TIME, NAME, EMPLOYEE_ID) values(TO_DATE('08-Dec-14 07:52:52','DD-MON-YY HH24:MI:SS'), 'XYZ', 123);
When I query the database to return date_time , I only get 08-Dec-14 , not time. I set this field as DATE.
What changes need to be made so that I can get the time?
Thanks in advance.
source share