diff --git a/sql-plan-management.md b/sql-plan-management.md index 3869669324af4..bd03c72da181d 100644 --- a/sql-plan-management.md +++ b/sql-plan-management.md @@ -192,7 +192,7 @@ This statement outputs the execution plan bindings at the GLOBAL or SESSION leve {{< copyable "sql" >}} ```sql -SELECT [SESSION] @@last_plan_from_binding; +SELECT @@[SESSION.]last_plan_from_binding; ``` This statement uses the system variable [`last_plan_from_binding`](/system-variables.md#last_plan_from_binding-new-in-v40) to show whether the execution plan used by the last executed statement is from the binding.