|
|
|
Re: How to get date and time in the Date Column while sqlldr [message #556808 is a reply to message #556799] |
Wed, 06 June 2012 13:09   |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
dora wrote on Wed, 06 June 2012 12:44Hi Sir,
ALTER SESSION SET NLS_DATE_FORMAT = 'YYYY-MM-DD HH24:MI:SS';
select * from stage;
These two statements when typed, it doesnot change, still i only see date no time in the date column of the table.
Any otherway of achieving it, pls reply.Thank You.
What data are you loading? I don't see any data. If the data doesn't have a time portion to it, what would you expect one to be loaded?
|
|
|
|
|
|
Re: How to get date and time in the Date Column while sqlldr [message #556826 is a reply to message #556819] |
Wed, 06 June 2012 15:18   |
 |
dora
Messages: 13 Registered: January 2012
|
Junior Member |
|
|
Sir,
It still doesnot display time in that column. I am quering in SQL Developer and SQL Plus Worksheer
The result is same, just date example 06-JUN-12
no time in their.
I have changed my Control File, as mentioned.
LOAD DATA
APPEND
INTO TABLE SCOOP.STAGE
FIELDS TERMINATED BY ","
( TABLE_NAME
,RECORDCOUNT
,CREATED_DATE "to_date(:created_date, 'YYYYMMDDHH:Mi:SS')"
)
For now using
select to_char(...............) , to see the date with time for that table.
But i would like to see the datewithtime when i just select from table without
using any builtin and also when i see from SQL DEVELOPER.
Please help.Thanks
[Updated on: Wed, 06 June 2012 23:26] by Moderator Report message to a moderator
|
|
|
|
|
|