Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 22 Feb 2007 @ 10:56:03 GMT


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


Subj:   Alter Table from Datype date to timestamp
 
From:   P Thowfeek Ahamed

Hi,

I had an existing table with records in it. Now i need to change the data type of a column from date to timestamp.

I tried giving alter table command (add). But it's not working...

So i added a column at the end of the table with datatype Timestamp.

Now i tried copying the values from Prev column (date type) to the new column ,its not accepting and throwing the error "Invalid operation on Ansi datetime or Interval value "...

Please let me know how I can change the datatype without dropping the table...


Thanks in Advance,

Thowfeek



     
  <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: 27 Dec 2016