We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如果"@Explain": true ,也就是开启性能分析,将会报错。
生成的语句如下:
EXPLAIN SELECT * FROM "DB2ADMIN"."apijson_user" WHERE ( ("id" = 82007) ) ORDER BY "id" LIMIT 1
该语句报错,去掉EXPLAIN后可以正常运行。
The text was updated successfully, but these errors were encountered:
通过查阅相关资料,db2好像是不支持这个语法,但是可以通过以下方式使用Explain。 设定 Explain 模式,执行SQL,结束Explain。
1. db2 connect 2. db2 set current explain mode explain 3. db2 -tvf sql.txt 4. db2 set current explain mode no
之后可以选用 db2exfmt 命令格式化输出:
5. db2exfmt -d sample -o sql.explain.txt 6. cat sql.explain.txt
Sorry, something went wrong.
No branches or pull requests
如果"@Explain": true ,也就是开启性能分析,将会报错。
生成的语句如下:
该语句报错,去掉EXPLAIN后可以正常运行。
The text was updated successfully, but these errors were encountered: