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!

want to insert the sysdate with timestamp into a date field

user12953417Jul 22 2016 — edited Jul 25 2016

Hi ,

Want to insert a sysdate with timestampĀ  into a date field , as i can't able to change the existing structure nor the NLS format .

example : Create table d_cust (d_date date) ;

insert into d_cust select to_date(sysdate,'dd-mon-yyyy hh24:mi:ss') from dualĀ 

--still the output is date i,e 07/22/2016. Is there anyother alternative without changing the NLS format.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 22 2016
Added on Jul 22 2016
36 comments
9,563 views