문제

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