I have a table materiel that contains four columns(id, nom, quantity, price, amount).
I want to know how to affect the result of column amount.
knowing that : amount = price * quantity
I tried with :
SELECT (price * quantity) AS res FROM materiel
But I would affect the result in the amount column