I found a bug hidden in the project, and the project was always normal. Suddenly there was a problem with the monthly report of a month. Later I found that the number in the sum function of selectsum (test) had crossed the border, you can solve the problem by using cast type conversion. selectsum (cast (testasbigint ))...... so there is no problem.
I found a bug hidden in the project, and the project was always normal. Suddenly there was a problem with the monthly report of a month. Later I found that the number in the select sum (test) function sum had crossed the border, the problem can be solved by using cast type conversion. select sum (cast (test as bigint ))...... so there is no problem.
I found a bug hidden in the project, and the project was always normal. Suddenly there was a problem with the monthly report of a month. Later I found that the number in the select sum (test) function sum had crossed the border, you can use cast to perform type conversion to solve the problem,
Select sum (cast (test as bigint.