There are two columns that have created which data type is Date, TimeStart and TimeEnd in my table (EventPlanLine). Well, the insert data is below shows:
Insert into EVENTPLANLINE (TIMESTART,TIMEEND)
values (to_date('25-OCT-18 8:00:00','DD-MON-RR HH24:MI:SS'),
to_date('25-OCT-18 17:00:00','DD-MON-RR HH24:MI:SS'));
Result:
25-OCT-18, 25-OCT-18
Forgive me about I only pick up those two columns data insertion to display. The result of the data presentation in the column shows DD-MON-RR format without time. Here is the question, how could the data presents with DD-MON-RR HH24:MI:SS format. I have checked from online resources, I could change NLS_DATE_FORMAT from Oracle, yes, it does and with time as below shows
ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-RR HH24:MI:SS'
But the all tables which data type is Date have changed in the database. So is there a solution could change one table date type rather entire database?
select to_char(timestart, 'dd-mon-rr') from ..- a_horse_with_no_name