Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 05 Mar 2002 @ 14:29:36 GMT


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


Subj:   Re: On ALTER TABLE
 
From:   Narayan Murthy K S

I thought the modify was to change the constraint or a existing check on the column. Here is the syntax:

On-Line Help
----------------------------------------------------------------------------
ALTER TABLE [databasename.]tablename [ ,option [ ... ,option]  ]
......
 [ MODIFY [cname | CONSTRAINT name] CHECK (boolean_condition)       ] ;
.....

Moreover if i gave a statement like : "ALTER TABLE t1 modify a char" this
is what i get.
-------------------------------------------------------------------------
 BTEQ -- Enter your DBC/SQL request or BTEQ command:
alter table t1 modify a char;

alter table t1 modify a char;
 *** Failure 3707 Syntax error, expected something like a 'CHECK' keyword
between the word 'a' and the 'char' keyword.
--------------------------------------------------------------------------

So i guess it is really not possible to change the datatype of a column.

So as some one from the mailgram mentioned an "add" used for the second time is interpreted as an "alter" - which as he said is definitely confusing - which is what i mentioned as the issue.

Narayan.



     
  <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