The student table looks like this
Name varchar(255), sub1 int(11), sub2 int(11), sub3 int(11)
I created a trigger to update sub3 based on the sum of sub1 and sub2,
create Trigger subject_total
after INSERT
on
student
for each row
set sub3 = sub1 + sub2;
While executing the above code, the following error is encountered. Error Code: 1193. Unknown system variable 'sub3'
DB: MYSQL