Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Sat, 13 Apr 2013 @ 21:21:43 GMT


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


Subj:   Re: Getting TIME from TIMESTAMP
 
From:   Dieter Noeth

Sukul Mahadik wrote:

  I wish to extract TIME portion from the TIMESTAMP.  


  Some book I read says the following syntax should work : SELECT CAST(CURRENT_TIMESTAMP AS TIME);  


Yes, that's the correct syntax.


  However this does not work on my system .  


What error code is returned? Do you use SQL Assistant plus ODBC?

Then there are three possible solutions:

- switch to the .NET Data Provider

- in the ODBC driver options: enable the "Disable Parsing" checkbox

- in the ODBC driver options: change the DateTimeFormat from to AAA


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