The update query is used to change the values of certain fields in existing records.
update tablename set field1 = expression, field2 = expression where condition
update stock_item set quantity = (quantity - 1) where id = 4;