Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 19 Feb 2009 @ 14:03:40 GMT


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


Subj:   Default display of date
 
From:   Anomy Anom

<-- Anonymously Posted: Thu, 19 Feb 2009 19:29 -->

The following is my query:

     SELECT
         CAST(CURRENT_TIMESTAMP(0) AS DATE),
         CAST(CAST(CURRENT_TIMESTAMP(0) AS DATE) AS TIMESTAMP(0));

The output is

     Current TimeStamp(0)      Current TimeStamp(0)
     02/19/2009                2009-02-19 00:00:00

I want my output to be like this.

     Current TimeStamp(0)      Current TimeStamp(0)
     2009-02-19                2009-02-19 00:00:00

Apart from using the format clause in select statement which setting in SQLAssistant should I change to achieve this?



     
  <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