DmlStats Stay organized with collections Save and categorize content based on your preferences.
Detailed statistics for DML statements
| JSON representation |
|---|
{"insertedRowCount":string,"deletedRowCount":string,"updatedRowCount":string,"dmlMode":enum ( |
| Fields | |
|---|---|
insertedRowCount |
Output only. Number of inserted Rows. Populated by DML INSERT and MERGE statements |
deletedRowCount |
Output only. Number of deleted Rows. populated by DML DELETE, MERGE and TRUNCATE statements. |
updatedRowCount |
Output only. Number of updated Rows. Populated by DML UPDATE and MERGE statements. |
dmlMode |
Output only. DML mode used. |
fineGrainedDmlUnusedReason |
Output only. Reason for disabling fine-grained DML if applicable. |
DmlMode
Enum to specify the DML mode used.
| Enums | |
|---|---|
DML_MODE_UNSPECIFIED | Default value. This value is unused. |
COARSE_GRAINED_DML | Coarse-grained DML was used. |
FINE_GRAINED_DML | Fine-grained DML was used. |
FineGrainedDmlUnusedReason
Reason for disabling fine-grained DML. Additional values may be added in the future.
| Enums | |
|---|---|
FINE_GRAINED_DML_UNUSED_REASON_UNSPECIFIED | Default value. This value is unused. |
MAX_PARTITION_SIZE_EXCEEDED | Max partition size threshold exceeded.Fine-grained DML Limitations |
TABLE_NOT_ENROLLED | The table is not enrolled for fine-grained DML. |
DML_IN_MULTI_STATEMENT_TRANSACTION | The DML statement is part of a multi-statement transaction. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-19 UTC.