last_insert_id is used to return the value of the auto-increment field from the last insert by the current session.
Attribute |
Description |
|---|---|
| Parameter type | Unit |
| Default Value | 0 |
| Value range | [0, 18446744073709551615] |
| Effective Scope | SESSION |
Meet OceanBase AI Database, the unified database for operational data, real-time analytics, and AI. Explore ->
Meet OceanBase AI Database, the unified database for operational data, real-time analytics, and AI. Explore ->
OceanBase Database
Download PDF
last_insert_id is used to return the value of the auto-increment field from the last insert by the current session.
Attribute |
Description |
|---|---|
| Parameter type | Unit |
| Default Value | 0 |
| Value range | [0, 18446744073709551615] |
| Effective Scope | SESSION |