如何修复错误:将表达式转换为数据类型 int 的算术溢出错误

问题描述 投票:0回答:0

我刚刚在查询语句中使用了

count
函数但是得到了如下所示的错误:

SELECT count(*)
FROM [my_table_data]

错误信息:

消息 8115,级别 16,状态 2,第 1 行
将表达式转换为数据类型 int 的算术溢出错误。

请帮我找到解决方案!

sql-server integer overflow sqldatatypes arithmetic-expressions
© www.soinside.com 2019 - 2024. All rights reserved.