capture the value from previous sql statement code example
Example 1: how to change the value of a table in sql
UPDATE employees
SET
address = '1300 Carter St',
city = 'San Jose',
postalcode = 95125,
region = 'CA'
WHERE
employeeID = 3;
Example 2: how to subtract from the value of a table in sql
UPDATE Inventory
SET Quantity = Quantity - 1
WHERE InventoryID = 2