Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 09 Apr 2003 @ 18:21:10 GMT


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


Subj:   Re: Right Syntax
 
From:   LeBlanc, James

To do this you need to convert

:P1 = 'AAA'

to

databasename.columnname.fieldname = 'AAA'

Teradata syntax does not permit static SQL to syntactically modify itself. The substitution of databasename.columnname.fieldname creates syntactical modification. That said, the host variables needs to appear on the right side of the equality sign.

To get past this and to accomplish what I understand your intent to be, one would need to jump to dynamic SQL and then observe the requirements of dynamic SQL in the stored procedure.



     
  <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