EXPLAIN and Procedures - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

You cannot EXPLAIN procedures.

For example, if you compile the procedure update_orders and perform the following EXPLAIN, an error occurs because update_orders is not a valid SQL statement.

     EXPLAIN update_orders;

Use EXPLAIN while building procedures. You must extract the SQL text from the procedure body and EXPLAIN each statement. This may require modification of the procedure SQL text. For example, you may have to remove an INTO clause or add a USING request modifier to represent procedure variables and parameters.