MySQL Forums
Forum List  »  Newbie

automatically calculated field
Posted by: KSHITIJ THOOL
Date: January 13, 2011 02:31PM

Hello friends,
I have one table in which one fields value would be calculated automatically as soon as we enter some fields in the other fields.this is to be done without using some triggers and stored procedures.
i.e
Table t1
id int(11) auto increment
pieces int(11)
Amount_per_piece decimal(18,5)
Total_price Decimal(20,5) ------> This field should be calculated automatically like this formula
Total_price= pices*Amount_per_piece

Thank you.

When

Options: ReplyQuote


Subject
Written By
Posted
automatically calculated field
January 13, 2011 02:31PM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.