Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Mon, 03 Jun 2002 @ 14:02:08 GMT





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




Subj:   Parens necessary?
 
From:   Mark Landry



Can anyone explain why in certain circumstances the Teradata parser requires parens around a function call? I have a suspicion that there's an implicit conversion taking place but I don't see why.

For example:

select coalesce(null, '123')
returns '123'

select coalesce(null, '123') || 'foo'
fails 3706 syntax error

select (coalesce(null, '123')) || 'foo'
returns '123foo'

Ah, the parens make all the difference.





     
  <Prev Next>  
<<First
<Prev
Next> Last>>  
 
 
 
 
 
 
 
 
  
 
  Top Home Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 30 Jun 2008