-2
In a table field of the integer type stores the quantity of items in stock, when I lower, I must give -1 of the field itself, how to do this straight from mysql?
Is that correct?
UPDATE `tblQtd` SET `qtdItens` = (`qtdItens`-1) WHERE `idItenRef` = '".$id."' LIMIT 1;
When I typed the title of the question there was no suggestion of similar answer, so I entered, always take care of it, thanks for the reference, delete my question?
– ElvisP