timestamp shows 0 for all the records [message #610241] |
Tue, 18 March 2014 12:17 |
|
ashwanth77
Messages: 95 Registered: April 2013 Location: India
|
Member |
|
|
I have added a column to my table activity_date timestamp but record shows as
3/18/2014 1:08:05.000000 PM
3/18/2014 1:07:20.000000 PM
3/18/2014 1:05:39.000000 PM
|
|
|
|
|
|
|
Re: timestamp shows 0 for all the records [message #610285 is a reply to message #610246] |
Wed, 19 March 2014 01:46 |
|
ashwanth77
Messages: 95 Registered: April 2013 Location: India
|
Member |
|
|
how to insert a sysdate with fractional sec into timestamp column
create table date_test
(
id number(2),
begin_date timestamp
);
insert into date_test values (1,TO_TIMESTAMP(sysdate, 'YYYY-MM-DD HH24:MI:SS'));
dis didnot work got the same result as
3/14/0019 12:00:00.000000 AM
and this worked
insert into date_test values (2,current_timestamp);
2 ,3/19/2014 2:53:39.954707 AM
thanks
[Updated on: Wed, 19 March 2014 01:57] Report message to a moderator
|
|
|
|