|
Archives of the TeradataForumMessage Posted: Fri, 07 Nov 2003 @ 10:52:53 GMT
<-- Anonymously Posted: Friday, November 07, 2003 03:55 --> I was wondering how do whitespaces ' ' get converted to ZERO while inserting into a numeric column. I believe it should enter NULL in such a case. I tried this both in ANSI & TERADATA mode. As a contrast Oracle inserts NULL for such a case. show table t1; *** Text of DDL statement returned. *** Total elapsed time was 1 second. --------------------------------------------------------------------------- CREATE SET TABLE t1 ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL ( a INTEGER) PRIMARY INDEX ( a ); BTEQ -- Enter your DBC/SQL request or BTEQ command: ins t1(' '); ins t1(' '); *** Insert completed. One row added. *** Total elapsed time was 1 second. BTEQ -- Enter your DBC/SQL request or BTEQ command: sel * from t1; sel * from t1; *** Query completed. One row found. One column returned. *** Total elapsed time was 1 second. a ----------- 0 Thanks & Regards,
| ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||