日期:2014-05-18  浏览次数:20442 次

数据转换溢出
SQL code

select 1  from dept where '114.56'>11.0
/*
Arithmetic overflow error converting varchar to data type numeric.
*/



一定需要将114.56显示转换吗?

------解决方案--------------------
11.0 不指定类型的话,默认为 numeric(3,1) 显然是存不下114.56的