Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to insert the sysdate time into the database

615573Feb 12 2008 — edited Feb 12 2008
hi all,
when i execute the following query,


insert into table_name
(date_field)
values
(to_date(sysdate, 'yyyy/mm/dd hh24:mi:ss'));

The value is inserted as 08-02-12 12:00:00. In this query, it always stores the default time as 12 a.m.

But i need to insert the original system time not the default one.

please help me how to rectify it.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 11 2008
Added on Feb 12 2008
3 comments
105,226 views