Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 16 Mar 2005 @ 12:32:41 GMT


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


Subj:   Re: Migrating Oracle date fields in Teradata
 
From:   Vidyasagar_Nagarajan

     sel
       cast('mar 01, 2003 01:01:01' as timestamp(0) format 'mmmbdd,by4bhh:mi:ss')
      ,cast('mar/01/2003 01:01:01' as timestamp(0) format 'mmmBddBy4bhh:mi:ss')
      ,cast('01/mar/2003 01:01:01' as timestamp(0) format 'ddBmmmBy4bhh:mi:ss')
      ,cast('01-mar-2003 01:01:01' as timestamp(0) format 'ddBmmmBy4bhh:mi:ss')
      ,cast('01/12/2003 01:01:01' as timestamp(0) format 'ddBmmBy4bhh:mi:ss');


     sel
       cast('mar 01, 2003 01:01:01' as timestamp(0) format 'mmmbdd,by4bhh:mi:ss')

     (timestamp(0))
      ,cast('mar/01/2003 01:01:01' as timestamp(0) format 'mmmBddBy4bhh:mi:ss')

     (timestamp(0))
      ,cast('01/mar/2003 01:01:01' as timestamp(0) format 'ddBmmmBy4bhh:mi:ss')

     (timestamp(0))
      ,cast('01-mar-2003 01:01:01' as timestamp(0) format 'ddBmmmBy4bhh:mi:ss')

     (timestamp(0))
      ,cast('01/12/2003 01:01:01' as timestamp(0) format 'ddBmmBy4bhh:mi:ss')

     (timestamp(0));

run above qry in BTEQ to see the O/P.

Please refer SQL PDF.


Regards,

Vidya Sagar.N



     
  <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