I want to alter a table and add a column that is the sum of two other columns, and this column is auto computed when I add new data.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Rather than adding this column to the table, I would recommend using a
Viewto calculate the extra column, and read from that.Here is a tutorial on how to create views here:
http://odetocode.com/Articles/299.aspx
Your view query would look something like: