Skip to main content
Version: 20 R7 BETA

Last query path

Last query path ( descFormat ) -> Function result

ParameterTypeDescription
descFormatIntegerDescription format (Text or XML)
Function resultStringDescription of last executed query path

Description

The Last query path command returns the detailed internal description of the actual path of the last query carried out on the data. For more information about query descriptions, please refer to the documentation of the DESCRIBE QUERY EXECUTION command.

This description is returned in Text or XML format depending on the value passed in the descFormat parameter. You can pass one of the following constants, found in the “Queries” theme:

ConstantTypeValue
Description in text formatLongint0
Description in XML formatLongint1

This command returns a significant value if the DESCRIBE QUERY EXECUTION command has been executed during the session.

The description of the last query path can be compared to the description of the query plan provided for the last query (obtained using the Last query plan command) for optimization purposes.

See also

DESCRIBE QUERY EXECUTION
Last query plan