You can do this by using a cursor in the stored procedure. For example, if you have 100 fields and want the sum of 99 columns to be less than 1000, you can exclude one of the columns (dep_name). You only need to manually exclude this column in SQL. Yes, if there are few columns that need to be calculated, you can just enumerate and add them as you said.
You can do this by using a cursor in the stored procedure. For example, if you have 100 fields and want the sum of 99 columns to be less than 1000, you can exclude one of the columns (dep_name). You only need to manually exclude this column in SQL. Yes, if there are few columns that need to be calculated, you can just enumerate and add them as you said.
As long as your a b c are all numerical fields, your SQL statement will be enough
I didn’t see the question clearly, I’m off topic,
Please add some more
Use
Get all the field names, and then use the obtained field names to assemble the delete sql you want,