Skip to content
Advertisement

Teradata Dynamic SQL with Bind Variables?

Is it possible to use bind variables in a Teradata dynamic SQL statement? I can’t find an example anywhere. I’m looking to do something like this:

Thanks

Advertisement

Answer

DML statements with bind variables are usually executed multiple times, thus there are no bind variables when you use EXECUTE IMMEDIATE, you must use EXECUTE/PREPARE:

See the Stored Procedure manual

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement