Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 14 Nov 2001 @ 21:13:33 GMT


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


Subj:   Re: Need help on sql syntax to convert values from decimal to characters
 
From:   Michael Larkins

Hi Faisal:

I would use something like this:

Ins into tabletarget
sel CAST(ID as CHAR(19)) from tablesource;

Of course, the CAST must use the length of the largest decimal value (including sign - potential for negative).


Hope this helps,

Mike



     
  <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