Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

BLANK FROM SOURCE IS CONVERTED TO 0 while loading into Table - response (2) by dnoeth

$
0
0

How is this table loaded?
A typecase from string to integer returns 0 for blanks/empty strings, this is documented but stupid:
try a select '' (int);
You should use a
NULLIF(col,'') (int)
to set the NULL before the cast. When you're using a load tool the syntax might be different, in FastLoad it's col (int, nullif='')
Dieter


Viewing all articles
Browse latest Browse all 27759

Trending Articles