Archives of the TeradataForum
Message Posted: Wed, 09 Apr 2003 @ 18:21:10 GMT
To do this you need to convert
:P1 = 'AAA'
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.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 27 Dec 2016|