Skip to content

Commit

Permalink
Update docs for LAST_INSERT_ID() (#19831)
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden authored Jan 15, 2025
1 parent 05ec1e8 commit 2264b61
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions functions-and-operators/information-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ TABLE t1;
>
> - In the preceding example, IDs increase by 2 while MySQL would generate IDs incrementing by 1 in the same scenario. For more compatibility information, see [Auto-increment ID](/mysql-compatibility.md#auto-increment-id).
The `LAST_INSERT_ID(expr)` function can accept an expression as an argument, storing the value for the next call to `LAST_INSERT_ID()`. You can use it as a MySQL-compatible method for generating sequences. Note that TiDB also supports proper [sequence functions](/functions-and-operators/sequence-functions.md).

### ROW_COUNT()

The `ROW_COUNT()` function returns the number of affected rows.
Expand Down

0 comments on commit 2264b61

Please sign in to comment.