Datatype error in teradata - teradata

i export the netezza table records into csv file with time format column 00:00:00 and import the csv file data into teradata table. But my records are not inserted in teradata because of time datatype. In csv files i use varchar datatype for time column in unix script and use time datatype for teradata. I want to know the reason for why records not inserted in teradata tables.

Related

How to attach a excel file as Clob from database into a plsql data table

I want to attach a clob file into oracle PLSQL data table. is there a code, please send me.

While importing the data from .txt file into teradata table i am getting invalid timestamp error

I have a .txt file contains timestamp column like 9/1/2020 00:00:00.000000 and some other columns.but while importing into teradata SQL assistant getting invalid time stamp error.
please help me the way as I need to import file data into volatile and has to do minus operation between these file table and actual table.
and the column datatype define in teradata table is timestamp(6)

Oracle query to search data based on values from an excel sheet

I want to write an oracle query to fetch data from table based on values(where clause) from an excel sheet. The excel sheet contains 3500+ values and i have to get data for all those 3500+ values from my database.

oracle and hive timestamp

I have a vendor oracle DB storing values to a column creation_timestamp as timestamp(6) when i create an extract of that table and load it to HDFS and create hive schema with that column defined as timestamp it does not populate the field. However if I use string it is all there. I have other MSSQL datetime data that successfully stored as timestamp in hive so I am just a little unsure why the oracle timestamp data is not populating.
The oracle timestmap looks like this: 07-JAN-15 05.55.20.732754000 PM
I have a feeling hive does not like the month as letters as the documentation states:Strings: JDBC compliant java.sql.Timestamp format "YYYY-MM-DD HH:MM:SS.fffffffff" (9 decimal place precision)
How can I convert the oracle timestamp(6):07-JAN-15 05.55.20.732754000 PM to the java.sql.Timestamp format shown above?
I was able to alter my session and then export the table, hive has now accepted it as a timestamp
ALTER SESSION SET NLS_TIMESTAMP_FORMAT = 'YYYY-MM-DD HH24:MI:SS.FF';
07-JAN-15 05.55.20.732754000 PM is now: 2015-01-07 17:55:20.732754000
Use to_date in hive.
Example :
select TO_DATE(from_unixtime(UNIX_TIMESTAMP('7-MAR-13', 'd-MMMM-yy'))) from table_name
Refer : date functions

Compare Excel column and SQL database field before importing Excel file

I want to compare name of columns of an Excel file with name of fields of a table in SQL database while importing data from Excel file. And then I can map my database filed name with Excel file column name.

Resources