Actually, it does give you the time information as well. Dates and times in Oracle are always stored with the time information.
How date/time columns are displayed depends upon the variable NLS_DATE_FORMAT. I haven't done this in a while so you'll have to do a bit of digging in the Oracle documentation to find out how to set it and what to set it to. Mike
"Experience is the comb that Nature gives us after we are bald."
Is that a haiku?
I never could get the hang
of writing those things.
insert into time_exp ( date_time ) values ( sysdate );
select to_char(date_time,'DD-MM-YYYY, HH24:MI:SS')
from time_exp;
Dates are always stored with a time element but just selecting the date will only display the date, if you want the time then you have to provide a 'format template' when selecting the date.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.