Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 09 Jan 2003 @ 20:40:11 GMT


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


Subj:   Re: FORMAT Problem
 
From:   Fred W Pluebell

Exporting in record mode will ignore FORMAT unless you CAST as (VAR)CHAR also:

SELECT WHS_RPT_EFF_DT (CHAR(10), FORMAT 'MM-DD-YYYY')
SELECT CAST(WHS_RPT_EFF_DT AS CHAR(10) FORMAT 'MM-DD-YYYY')

Note also that DATE is a special case. Otherwise you may need two CASTs:

SELECT (MY_INTEGER (FORMAT '-9(9)')) (CHAR(10))
SELECT CAST((CAST(MY_INTEGER AS FORMAT '-9(9))) AS CHAR(10))



     
  <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