Hi-
Does anyone know how to create a field in MySQL that is a calculated value (and that is stored in the table)?
For example if I have two fields for a record in a table:
number (value = 2)
rate (value = 5)
and I want to create a calculated field in the same MySQL table called: total
and this calculated field 'total' would have the value of 'number' multiplied by 'rate'.
total (value = 10)
Is it possible to do this, such that the value in the 'total' field would change according to what is entered or changed in either the 'number' or 'rate' field?
Any help or comments would be much appreciated!
--Rover
Does anyone know how to create a field in MySQL that is a calculated value (and that is stored in the table)?
For example if I have two fields for a record in a table:
number (value = 2)
rate (value = 5)
and I want to create a calculated field in the same MySQL table called: total
and this calculated field 'total' would have the value of 'number' multiplied by 'rate'.
total (value = 10)
Is it possible to do this, such that the value in the 'total' field would change according to what is entered or changed in either the 'number' or 'rate' field?
Any help or comments would be much appreciated!
--Rover