Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
qw4990 committed Jan 8, 2025
1 parent f6f8dfa commit 84e9989
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sql-plan-cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,6 @@ After you enable this feature, the optimizer quickly evaluates the query. If it

To reduce the syntax parsing cost of SQL statements, it is recommended that you run `prepare stmt` once, then `execute stmt` multiple times before running `deallocate prepare`:

{{< copyable "sql" >}}

```sql
MySQL [test]> prepare stmt from '...'; -- Prepare once
MySQL [test]> execute stmt using ...; -- Execute once
Expand All @@ -355,8 +353,6 @@ MySQL [test]> deallocate prepare stmt; -- Release the prepared statement

In real practice, you may be used to running `deallocate prepare` each time after running `execute stmt`, as shown below:

{{< copyable "sql" >}}

```sql
MySQL [test]> prepare stmt from '...'; -- Prepare once
MySQL [test]> execute stmt using ...;
Expand Down

0 comments on commit 84e9989

Please sign in to comment.