From 6d1cea218c9db0abd0a839b1e7793183eba261e6 Mon Sep 17 00:00:00 2001 From: Chengpeng Yan Date: Wed, 25 Aug 2021 14:35:41 +0800 Subject: [PATCH] Update sql-plan-management.md --- sql-plan-management.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql-plan-management.md b/sql-plan-management.md index 56296bda38783..c93c772b04cd0 100644 --- a/sql-plan-management.md +++ b/sql-plan-management.md @@ -193,7 +193,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.