tables_db_decrement_row_column
Decrease a numeric value in a specific database table cell by a defined amount, useful for updating counters, inventory quantities, or scores.
Instructions
Decrement a specific column of a row by a given value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database_id | Yes | Database ID. | |
| table_id | Yes | Table ID. | |
| row_id | Yes | Row ID. | |
| column | Yes | Column key. | |
| value | No | Value to increment the column by. The value must be a number. | |
| min | No | Minimum value for the column. If the current value is lesser than this value, an exception will be thrown. | |
| transaction_id | No | Transaction ID for staging the operation. |