Hi everyone
I have tried the following SQL under the Scott/Tiger schema :
insert into emp(empno, hiredate)
values(9999, decode(1, 0, NULL, to_date('18-09-2003 18:30:00', 'DD-MM-YYYY HH24:MI:SS')));
Next, I do the following :
select empno, to_char(hiredate, 'DD-MM-YYYY HH24:MI:SS') from emp where empno = 9999;
But in this output the time portion of the hiredate-field is now 00:00:00
Why is the time portion truncated ?
Thanks
Hench
I have tried the following SQL under the Scott/Tiger schema :
insert into emp(empno, hiredate)
values(9999, decode(1, 0, NULL, to_date('18-09-2003 18:30:00', 'DD-MM-YYYY HH24:MI:SS')));
Next, I do the following :
select empno, to_char(hiredate, 'DD-MM-YYYY HH24:MI:SS') from emp where empno = 9999;
But in this output the time portion of the hiredate-field is now 00:00:00
Why is the time portion truncated ?
Thanks
Hench