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!

sysdate produces 00:00 time

Steven ZorbApr 11 2013 — edited Apr 11 2013
Hello,

I have a stored procedure that stores a record containing a date field.

The syntax is

insert into audit_log values (lv_sequence, sysdate, REC_TYPE, p_pln_id, OPER_UPDATE, log_message);

This works except that the date stored in the record has a time of 00:00. This does not work well for an audit log.

How can I store a date that includes a time?

An interesting fact is...I used this same command in SQL Developer to store a record and the date stored did have a time???

Thank you, Steve
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 9 2013
Added on Apr 11 2013
7 comments
2,455 views