I have a table in which I have to define a column as the sum of the two previous ones. Is there a way to do it in the definition (POSTGRESQL) ? If no, can you tell me how to do it with triggers please ?
Assume we have this :
Table Foo
+---+---+---------+
| A | B | Sum_A_B |
+---+---+---------+
| 2 | 3 | 5 |
| ... |