Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 27 Jul 2004 @ 16:07:30 GMT


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


Subj:   Re: String length function
 
From:   Hough, David A

Just so you know, LENGTH is *not* a Teradata function. If you run these queries form BTEQ, you'll get a syntax error. It's actually an ODBC function which is mapped by the driver to CHARACTER_LENGTH. Run a 'select length(user);' from Queryman and look at the column heading.

There are a large number of other functions which can also be mapped, and I think the Teradata drive is not entirely compliant with the ODBC standard. The driver should not do substitutions of this type unless the function is enclosed in curly braces {} (I think).

There is also an alternate date format {date yyyy-mm-dd} (I think - it's been a while) that may also cause problems. Nobody hand codes a string like that, but some of the 3rd party query generators do.


/dave hough



     
  <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