Last name: Nightingale SDB Popularity ranking: 1104 This unusual name is of Anglo-Saxon origin, and is a nickname surname for someone with a good, sweet singing voice, from the bird, the nightingale.
You are doing everything right by using a to_date function and specifying the time. The time is there in the database. The trouble is just that when you select a column of DATE datatype from the database, the default format mask doesn't show the time.If you issue a. alter session set nls_date_format = 'dd/MON/yyyy hh24:mi:ss'.ou are doing everything right by using a to_date function and specifying the time. The time is there in the database. The trouble is just that when you select a column of DATE datatype from the database, the default format mask doesn't show the time.
Use a date format in the CREATE TABLE. for example -- your date format mask would be mm:dd:yyyy which would handle both. you could have trandate be a VARCHAR -- just a string. And then you can use to_date() on the string in your SQL. I would use the create table approach however, it'll put bad records to the .bad file and not fail your SQL statement when you encounter a bad date (if you set rejects on the create table that is...)