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 Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 27 Dec 2016