samedi 14 mars 2015

Save a cell in DB dependent on other cells

Is there any way to save a cell in an SQLite database dependent on other cells. For example, suppose we have got the following table:


id | name | value


1 | n1 | 10


2 | n2 | 20


3 | n3 | n1+n2


Is there any way to save an equation as the value of n3. The goal is: by updating n1 and n2, the value of n3 would be updated automatically.


Aucun commentaire:

Enregistrer un commentaire