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!

Select time from sysdate

SoofiSep 20 2013 — edited Sep 20 2013

Hi Experts,

I have to concatenate a date(not sysdate) with the system time and store it in a column having datatype as DATE...

So I tried like this....

   SELECT

              TO_CHAR (C_DATE, 'DD-MON-YYYY')

           || ' '

           || TO_CHAR (SYSDATE, 'HH:MI:SS PM')

    FROM   DUAL;

But while inserting the output of the above query in my table it throws error like this...

ORA-01830: date format picture ends before converting entire input string

Is there any possibility to achieve this....

Thanks in advance.

This post has been answered by Frank Kulash on Sep 20 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 18 2013
Added on Sep 20 2013
6 comments
1,619 views