![]() |
|
Archives of the TeradataForumMessage Posted: Thu, 02 Apr 2004 @ 05:46:53 GMT
Hello, you are right not to use NULLIF in the layaout definition. But you can use a CASE statement when you use the data
> .FIELD TT_STAT_TYP 424
> DECIMAL(15,0)
> NULLIF TT_STAT_TYP_IND = '?';
> .FIELD TT_STAT_TYP_IND 432 CHAR(01);
INSERT INTO ....
TT_STAT_TYP = CASE WHEN :TT_STAT_TYP_IND = '?'
THEN NULL
ELSE :TT_STAT_TYP
END
This will not have the terrible effects on CPU you try to prevent by not using NULLIF. Hope this helps! Thanks! Mirjam
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||