Skip to content

Commit

Permalink
Add info to PREPARE statement docs (#17309)
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden authored May 20, 2024
1 parent 02c9e16 commit aa1631b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sql-statements/sql-statement-prepare.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ PrepareSQL ::=
| UserVariable
```

> **Note:**
>
> For each `PREPARE` statement, the maximum number of placeholders is 65535.
To limit the number of `PREPARE` statements in the current TiDB instance, you can use the [`max_prepared_stmt_count`](/system-variables.md#max_prepared_stmt_count) system variable.

## Examples

```sql
Expand Down

0 comments on commit aa1631b

Please sign in to comment.