How to store a row's multiple column's sum on that same table's same row's another column? [duplicate]
问题 This question already has answers here : How can I write a user defined function in MySQL so that when I delete a row from one table, that particular row from another table also gets deleted? (3 answers) Closed last year . CREATE TABLE `student` ( `student_id` int(5) NOT NULL AUTO_INCREMENT, `student_first_name` varchar(30) not null, `student_lase_name` varchar(30) not null, `student_roll_no` int(5) not null, `student_class` int(2) not null, PRIMARY KEY (`student_id`) ); CREATE TABLE `result