Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 08 Dec 2004 @ 17:10:22 GMT


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


Subj:   Re: SQL assistant 6.2 and Primary Key
 
From:   Dieter Noeth

Haritha Aepala wrote:

  The following SQL is not throwing an error when run from Sql assistant 6.2  


          create table  t1( i int, j int) primary key (i) ;

  As far as I know it should throw a syntax error as PRIMARY KEY constraint cannot be defined like above.  


ACK


  BTEQ is throwing an error but Queryman is converting the column to NUPI. ( Primary key should be made as UPI but I could see it as NUPI)  


  Is this a bug or am missing something here?  


IMHO it's a bug because the ODBC driver modifies the SQL. From dbc.AccessLog:

     CREATE TABLE t1 ( i INT , j INT ) PRIMARY INDEX ( i ) ;

If you uncheck

Tools -> Options -> Allow use of ODBC SQL Extensions in queries


it throws an error.


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