I'm learning about database indexes right now, and I'm trying to understand the efficiency of using them.
I am using sql+.
How do I see the execution plan and where can I found in it the information telling me whether my index was used or not?
On the SQL Server Management Studio toolbar, click Database Engine Query. You can also open an existing query and display the estimated execution plan by clicking the Open File toolbar button and locating the existing query. Enter the query for which you would like to display the actual execution plan.
19.1. V$SQL_PLAN contains the execution plan for every statement stored in the cursor cache. Its definition is similar to the PLAN_TABLE .
Try using this code to first explain and then see the plan:
Explain the plan:
explain plan for select * from table_name where ...;
See the plan:
select * from table(dbms_xplan.display);
Edit: Removed the brackets
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With