Hi
I want to add the three fields then have the answer in the fourth field.
Heres an example:
Table: A
Fields in table A
field1
field2
field3
answer
before updating:
field1-----field2-----field3-----answer
2---------0---------1---------
after updating:
field1-----field2-----field3------answer
2---------0---------1----------3
so how to write this using an update query?
i have my own code but its not working because i think its wrong.
UPDATE A SET A.answer = SUM(A.field1,A.field2,A.field3);
Pls help me about this.
Thank you.
I want to add the three fields then have the answer in the fourth field.
Heres an example:
Table: A
Fields in table A
field1
field2
field3
answer
before updating:
field1-----field2-----field3-----answer
2---------0---------1---------
after updating:
field1-----field2-----field3------answer
2---------0---------1----------3
so how to write this using an update query?
i have my own code but its not working because i think its wrong.
UPDATE A SET A.answer = SUM(A.field1,A.field2,A.field3);
Pls help me about this.
Thank you.