Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

ColumnName is missing with error messages - response (2) by Adharssh

$
0
0

Hi,
You can't find out which field would give the Invalid Timestamp. Instead, you have to select each field and try to do the cast function. 
 

SELECT cast(col2_dt as timestamp(0))
 FROM "STG_OUT".test_data;

SELECT cast(col3_start_dt as timestamp(0))
 FROM "STG_OUT".test_data;

SELECT cast(col4_end_dt as timestamp(0))
 FROM "STG_OUT".test_data;

 
Please try to see the Datatype present in the Source Table 'test_date'. If the Datatype is a VARCHAR, then it should contain length of 26. To cast it to Timetsamp.


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>