实用命令
-
查看语句模拟的执行计划
EXPLAIN 语句- 并不会真正执行,只是用历史数据推测
-
查看语句实际的执行计划及执行时间
EXPLAIN ANALYZE 语句- 会真正执行,更耗时
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
查看语句模拟的执行计划
EXPLAIN 语句
查看语句实际的执行计划及执行时间
EXPLAIN ANALYZE 语句