Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 30 Jun 2006 @ 15:05:19 GMT


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


Subj:   Re: CAST into varchar 2 versions
 
From:   Dieter Noeth

Anomy.Anom wrote:

  Should this query not have returned 4 columns?  


:-)

     sel cast(1234567 as char(11)) || ';',
           (1234567 (char(11))) || ';',
           (1234567 (char(20))) || ';',
           (1234567 (char(5))) || ';';

       *** Query completed. One row found. 4 columns returned.
       *** Total elapsed time was 1 second.

     (1234567||';')  (1234567||';')  (1234567||';')         (1234567||';')
     --------------  --------------  ---------------------  --------------
     1234567    ;        1234567;        1234567         ;      1;

Added the last column and forgot to cut&paste again...

Dieter



     
  <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