Update tickets¶
Within an update table, an individual row of data populating 5 columns constructs a unique ‘ticket’.
table: the name of the database table to update.
field: the name of the table column to update.
value: the new value to be inserted into the column.
key_name: the name of the table column by which MySQL can identify which rows will be updated.
key_value: the value of the conditional column by which MySQL can identify which rows will be updated.
For example, the update ticket below…
table |
field |
value |
key_name |
key_value |
phage |
Cluster |
A |
PhageID |
Trixie |
…will result in the following MySQL statement…
UPDATE phage SET Cluster = ‘A’ WHERE PhageID = ‘Trixie’;
…and only the Cluster data for Trixie will be updated.