我正在编写使用Apache Derby的Java应用程序,我正在寻找与"explain“语句等效的语句(例如,用于mySQL )。这在Derby中是行不通的。有没有类似的东西?
发布于 2011-05-13 04:20:14
还有一些类似的东西:首先是derby.language.logQueryPlan=true,它将查询计划信息写入日志文件:http://db.apache.org/derby/docs/10.8/ref/rrefproper43414.html。其次,还有RUNTIMESTATISTICS特性,如果需要,它可以将统计数据捕获到您的程序中:http://db.apache.org/derby/docs/10.8/ref/rrefsqlj38831.html。第三,XPLAIN风格,它将查询计划信息捕获到数据库本身内部的一组表中:http://db.apache.org/derby/docs/10.8/ref/rref_xplain_tables.html。
您可能还应该花点时间阅读以下内容:http://db.apache.org/derby/docs/10.8/tuning/ctundepth13055.html
https://stackoverflow.com/questions/5981406
复制相似问题