方法一:
SQL> explain plan for select name from a,b where a.id=b.id; 已解釋。 SQL> select * from table(DBMS_XPLAN.DISPLAY);
方法二:
SQL> set autotrace on explain; //打開執行計劃 SQL> select name from a,b where a.id=b.id;
查看結束後,記得關閉執行計劃
SQL> set autotrace off explain; //打開執行計劃