Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 15 Sep 2009 @ 14:01:37 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


Subj:   Re: INTEGER to VARCHAR data conversion strange
 
From:   Anderson, Dirk

We are on TD 12 also, but the 1 does not disappear when we do the following...

     CREATE TABLE user_work.i
     (a INTEGER)

     CREATE TABLE user_work.x
     (a VARCHAR(20))

     INS INTO user_work.i VALUES (1);

     INS INTO user_work.x
     SEL * FROM user_work.i;

     SEL char_length(a)
        ,a
     FROM user_work.x;

Answerset:

     Characters(a)   a
     -------------------
     11                1

Thanks.

Dirk Anderson
Architect



     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023