If you issue this command to informix server, the server will just generate explain and won't run the query. Great feature if your query doesn't end at all.

SET EXPLAIN ON AVOID_EXECUTION;

If you issue this command to informix then the Explain file will be generated at that location .

SET EXPLAIN FILE TO 'c:\temp\sql.out';

But, I need both options on and I can't figure out the syntax for doing that. If I execute both statements then the latter overrides the former.

有帮助吗?

解决方案

Execute first the SET EXPLAIN FILE TO 'c:\temp\sql.out';, this way you set the target.
Then you change to avoid execution : SET EXPLAIN ON AVOID_EXECUTE;;

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top